From 435ed0d2023f31cdaf18419696e067f69f36b234 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 28 Jun 2018 16:00:47 +0200 Subject: Add i3lock keybinding --- gui/conf/xmonad.hs | 1 + gui/xmonad.nix | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs index c11c8ce..d451913 100644 --- a/gui/conf/xmonad.hs +++ b/gui/conf/xmonad.hs @@ -77,6 +77,7 @@ keybindings = -- xmonad session control [ ("C-M1-" , io (exitWith ExitSuccess)) , ("C-M1-" , spawn "xmonad --restart") + , ("C-M1-l" , spawn "i3lock -c 000000") -- application launchers , ("M-" , spawn "rofi -show combi") , ("M-" , spawn "kitty") diff --git a/gui/xmonad.nix b/gui/xmonad.nix index c0c4647..3586747 100644 --- a/gui/xmonad.nix +++ b/gui/xmonad.nix @@ -21,4 +21,9 @@ config = ./conf/xmonad.hs; }; }; + + home.packages = [ + # lockscreen + pkgs.i3lock + ]; } -- cgit v1.2.3