diff --git a/lib/KeyBindings.hs b/lib/KeyBindings.hs index 34ea4fd..729f530 100644 --- a/lib/KeyBindings.hs +++ b/lib/KeyBindings.hs @@ -31,6 +31,9 @@ import qualified XMonad.StackSet as W -- Custom (in libs) import Password (passPrompt) +lockScreenCmd = + spawn "/etc/profiles/per-user/e/bin/mpc pause; /run/current-system/sw/bin/xset s activate" + modify :: XConfig l -> XConfig l modify conf = conf { modMask = mod4Mask -- Use the "Win" key for the mod key @@ -43,6 +46,15 @@ modify conf = conf , ("", spawn "/etc/profiles/per-user/e/bin/mpc toggle") , ("", spawn "/etc/profiles/per-user/e/bin/mpc next") , ("", spawn "/etc/profiles/per-user/e/bin/mpc prev") + -- KP_1 -> KP_6 macros + , ("", viewProject "sound") + , ("", viewProject "frs") + , ("", viewProject "chat") + , ("", viewProject "isengard") + , ("", viewProject "moria") + , ("", viewProject "fre") + -- KP_Delete + , ("Cancel", lockScreenCmd) , ("M-", windows W.focusDown) , ("M-", sendMessage (Toggle "Full")) , ("M-$", sendMessage (Toggle "Full")) @@ -52,7 +64,7 @@ modify conf = conf , ("M-", nextWS) , ("M-", toggleWS' ["NSP"]) , ("M-", windows W.focusUp) - , ("M-S-", spawn "/etc/profiles/per-user/e/bin/mpc pause; /run/current-system/sw/bin/xset s activate") + , ("M-S-", lockScreenCmd) , ("M-S-", shiftToPrev >> prevWS) , ("M-S-", shiftToNext >> nextWS) , ("M-s s", spawn "/etc/profiles/per-user/e/bin/flameshot gui")