diff options
| author | Josh Rahm <rahm@google.com> | 2022-02-11 12:22:30 -0700 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2022-02-11 12:22:30 -0700 |
| commit | e2b8c1c7e934009e26ad640d75c689211f51cc1b (patch) | |
| tree | d07d13c6c3a5de3498a5e37cd900c9e093be854e /src/Internal/Keys.hs | |
| parent | 4f268190128b0e2bb56d57b99e808d1b0476eea6 (diff) | |
| download | rde-e2b8c1c7e934009e26ad640d75c689211f51cc1b.tar.gz rde-e2b8c1c7e934009e26ad640d75c689211f51cc1b.tar.bz2 rde-e2b8c1c7e934009e26ad640d75c689211f51cc1b.zip | |
Add set backlight keys. Have not yet committed the set-backlight.sh script yet
Diffstat (limited to 'src/Internal/Keys.hs')
| -rw-r--r-- | src/Internal/Keys.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs index 8731f42..ab8869e 100644 --- a/src/Internal/Keys.hs +++ b/src/Internal/Keys.hs @@ -310,6 +310,15 @@ keymap = runKeys $ do bind xF86XK_AudioPrev $ do noMod $ spawn "spotify-control prev" + bind xF86XK_MonBrightnessUp $ do + noMod $ spawn "set-backlight.sh +0.05" + justMod $ spawn "set-backlight.sh 1" + + bind xF86XK_MonBrightnessDown $ do + noMod $ spawn "set-backlight.sh -0.05" + justMod $ spawn "set-backlight.sh 0.01" + rawMask shiftMask $ spawn "set-backlight.sh 0" + mouseMap :: ButtonsMap l mouseMap = runButtons $ do bind button1 $ do |