feat(prog/xmonad): add hotkey to lock screen
This commit is contained in:
parent
b9dd32bad0
commit
79aeaede42
2 changed files with 7 additions and 4 deletions
|
@ -93,7 +93,7 @@ in
|
||||||
services.screen-locker = {
|
services.screen-locker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
lockCmd = "/usr/bin/i3lock -c 000000";
|
lockCmd = "/usr/bin/i3lock -e -c 000000";
|
||||||
|
|
||||||
inactiveInterval = 5;
|
inactiveInterval = 5;
|
||||||
};
|
};
|
||||||
|
|
|
@ -127,6 +127,8 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
||||||
|
|
||||||
-- Quit xmonad
|
-- Quit xmonad
|
||||||
, ((mod4Mask .|. shiftMask, xK_q ), io (exitWith ExitSuccess))
|
, ((mod4Mask .|. shiftMask, xK_q ), io (exitWith ExitSuccess))
|
||||||
|
-- Lock screen
|
||||||
|
, ((mod4Mask , xK_l ), spawn "i3lock -e -c 000000")
|
||||||
|
|
||||||
-- Restart xmonad
|
-- Restart xmonad
|
||||||
, ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart")
|
, ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart")
|
||||||
|
@ -318,9 +320,10 @@ help = unlines ["The default modifier key is 'alt'. Default keybindings:",
|
||||||
"mod-comma (mod-,) Increment the number of windows in the master area",
|
"mod-comma (mod-,) Increment the number of windows in the master area",
|
||||||
"mod-period (mod-.) Deincrement the number of windows in the master area",
|
"mod-period (mod-.) Deincrement the number of windows in the master area",
|
||||||
"",
|
"",
|
||||||
"-- quit, or restart",
|
"-- System ",
|
||||||
"mod-Shift-q Quit xmonad",
|
"mod4-l Lock screen",
|
||||||
"mod-q Restart xmonad",
|
"mod4-Shift-q Quit xmonad",
|
||||||
|
"mod-q Restart xmonad",
|
||||||
"",
|
"",
|
||||||
"-- Workspaces & screens",
|
"-- Workspaces & screens",
|
||||||
"mod-[1..9] Switch to workSpace N",
|
"mod-[1..9] Switch to workSpace N",
|
||||||
|
|
Loading…
Reference in a new issue