From e2b8c1c7e934009e26ad640d75c689211f51cc1b Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 11 Feb 2022 12:22:30 -0700 Subject: Add set backlight keys. Have not yet committed the set-backlight.sh script yet --- src/Internal/Keys.hs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Internal/Keys.hs') 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 -- cgit