diff options
| author | Josh Rahm <rahm@google.com> | 2022-02-11 12:22:30 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-10-09 12:19:45 -0600 |
| commit | 5c5db5090ea1c8c62cdd04ab18ee2a3a12cb4c40 (patch) | |
| tree | adc0053a37ca7b01887f5f0257b7649da0d905bb /src/Internal | |
| parent | 916633ca48857d57936b178e57794f7b45e70137 (diff) | |
| download | rde-5c5db5090ea1c8c62cdd04ab18ee2a3a12cb4c40.tar.gz rde-5c5db5090ea1c8c62cdd04ab18ee2a3a12cb4c40.tar.bz2 rde-5c5db5090ea1c8c62cdd04ab18ee2a3a12cb4c40.zip | |
Add set backlight keys. Have not yet committed the set-backlight.sh script yet
Diffstat (limited to 'src/Internal')
| -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 d03557c..aeb3602 100644 --- a/src/Internal/Keys.hs +++ b/src/Internal/Keys.hs @@ -374,6 +374,15 @@ keymap = runKeys $ do bind xF86XK_AudioPrev $ do noMod mediaPrev + 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 config <- getConfig |