aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Internal/Keys.hs9
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