xmonad: set XF89Sleep to hibernate

This commit is contained in:
Serĉanto de Scio 2022-12-20 18:50:41 +10:00
parent 9393c2a356
commit b8aae88553
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -175,7 +175,7 @@ promptTheme =
-- Applications --
------------------
brightnessDown, brightnessUp, browser, discord, editor, element, incognitoBrowser, iogBrowser, launcher, logseq, musicPlayer, obs, screenshot, signal, slack, myTerminal, volumeDown, volumeMute, volumeUp :: String
brightnessDown, brightnessUp, browser, discord, editor, element, hibernate, incognitoBrowser, iogBrowser, launcher, logseq, musicPlayer, obs, screenshot, signal, slack, myTerminal, volumeDown, volumeMute, volumeUp :: String
brightnessDown = "light -U 5"
brightnessUp = "light -A 5"
browser = "brave"
@ -185,6 +185,7 @@ editor = "codium"
element = "element-desktop"
enableEDP1 = "xrandr --output eDP-1 --primary --auto --output HDMI-1 --off"
enableHDMI1 = "xrandr --output eDP-1 --off --output HDMI-1 --primary --mode 3840x2160"
hibernate = "sudo systemctl hibernate"
incognitoBrowser = "brave -incognito"
iogBrowser = "google-chrome-stable"
launcher = "rofi -show drun"
@ -229,7 +230,8 @@ myKeybinds =
("<XF86AudioMute>", spawn volumeMute),
("<XF86AudioRaiseVolume>", spawn volumeUp),
("<XF86MonBrightnessDown>", spawn brightnessDown),
("<XF86MonBrightnessUp>", spawn brightnessUp)
("<XF86MonBrightnessUp>", spawn brightnessUp),
("<XF86Sleep>", spawn hibernate)
]
-- Navigation
++ zipWith (makeKeybindZipper "M-" windowGo) htnsKeys dirs