]> code.delx.au - dotfiles/commitdiff
xmonad: PhysicalScreens
authorJames Bunton <jbunton@atlassian.com>
Tue, 4 Nov 2014 06:57:41 +0000 (17:57 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Tue, 4 Nov 2014 20:31:47 +0000 (07:31 +1100)
.xmonad/xmonad.hs

index 0f5173a652dbbce0623102261897a1ad62d8a2b9..a9550a86e08247a8b08433197134538ffa221a23 100644 (file)
@@ -1,5 +1,6 @@
 import System.IO
 import XMonad
+import XMonad.Actions.PhysicalScreens
 import XMonad.Hooks.DynamicLog
 import XMonad.Hooks.EwmhDesktops
 import XMonad.Hooks.ICCCMFocus
@@ -55,9 +56,9 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
 
     -- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
     -- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
-    [((m .|. modm, key), screenWorkspace sc >>= flip whenJust (windows . f))
+    [((m .|. modm, key), f sc)
         | (key, sc) <- zip [xK_o, xK_e, xK_u] [0..]
-        , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]
+        , (f, m) <- [(viewScreen, 0), (sendToScreen, shiftMask)]
     ]
     ++