]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - xmonad/xmonad.hs
xmonad/xmonad.hs: Use exec xtrlock in mod-z mapping.
[config/dotfiles.git] / xmonad / xmonad.hs
index 26d0b3fd3a1831ffa9a1e6d212c85507ec7e8cd6..daa2c5a929f22b4ca61d87492d15350a0727f605 100644 (file)
@@ -176,6 +176,10 @@ myKeys = [
         -- Switch to last active workspace, thanks to moljac024 in #xmonad on
         -- Freenode (2010-12-18 14:45 CET).
       , ((myModMask, xK_f), toggleWS)
+
+      -- Lock the screen. The sleep is necessary to allow xtrlock to grab the
+      -- keyboard input.
+      , ((myModMask, xK_z), spawn "sleep 1 && exec xtrlock")
     ]
     ++
     -- When using multiple screens, switching to another workspace causes