From b8aae8855307313c19c588ce9d427bf486596fce Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Tue, 20 Dec 2022 18:50:41 +1000 Subject: [PATCH] xmonad: set XF89Sleep to hibernate --- .xmonad/xmonad.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index 8cd3d6b..76daf0f 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -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 = ("", spawn volumeMute), ("", spawn volumeUp), ("", spawn brightnessDown), - ("", spawn brightnessUp) + ("", spawn brightnessUp), + ("", spawn hibernate) ] -- Navigation ++ zipWith (makeKeybindZipper "M-" windowGo) htnsKeys dirs