]> code.delx.au - dotfiles/commitdiff
xmonad: key binding for cycling workspaces
authorJames Bunton <jamesbunton@delx.net.au>
Tue, 6 Dec 2016 21:47:29 +0000 (08:47 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Tue, 6 Dec 2016 21:51:37 +0000 (08:51 +1100)
.xmonad/xmonad.hs

index 262cd09eb0fa62dc174862aa33ff6f2ff073123f..c051164c841b2a5e525787ff8e371ea36365b809 100644 (file)
@@ -1,6 +1,7 @@
 {-# LANGUAGE FlexibleContexts #-}
 import System.IO
 import XMonad
+import XMonad.Actions.CycleRecentWS
 import XMonad.Actions.PhysicalScreens
 import XMonad.Hooks.DynamicLog
 import XMonad.Hooks.EwmhDesktops
@@ -50,7 +51,8 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
         ((modm , xK_comma ), sendMessage (IncMasterN 1)),
         ((modm , xK_period), sendMessage (IncMasterN (-1))),
         ((modm , xK_b ), sendMessage ToggleStruts),
-        ((modm , xK_z ), sendMessage Mag.Toggle)
+        ((modm , xK_z ), sendMessage Mag.Toggle),
+        ((modm , xK_a), cycleRecentWS [xK_Super_L] xK_a xK_a)
     ]
     ++