a***@gmail.com
2017-02-23 15:19:18 UTC
Hi all,
Iâve been trying to get XMonad set up for dual monitor, but have been struggling with finding a way to cycle focus through every window (not workspace) visible on either screen. The behavior would be similar to XMonad.Actions.WindowNavigation (the experimental module), but the cycling wouldnât be bound to any direction, just cycle through all visible windows in the normal Alt-Tab sequence (left to right, top to bottom).
Thanks!
Alex
Iâve been trying to get XMonad set up for dual monitor, but have been struggling with finding a way to cycle focus through every window (not workspace) visible on either screen. The behavior would be similar to XMonad.Actions.WindowNavigation (the experimental module), but the cycling wouldnât be bound to any direction, just cycle through all visible windows in the normal Alt-Tab sequence (left to right, top to bottom).
-- top of config
import qualified XMonad.StackSet as W
-- somewhere at top level
let screenNext x = W.current . f $ ws { W.current = x }
c':vs' = map screenNext (c:vs)
in ws{ W.current = c', W.visible = vs' }
...import qualified XMonad.StackSet as W
-- somewhere at top level
let screenNext x = W.current . f $ ws { W.current = x }
c':vs' = map screenNext (c:vs)
in ws{ W.current = c', W.visible = vs' }
-- in keybindings: there are much more W.swap* W.focus* and W.shift* functions to use.
,((modm, xK_f), onAllWS W.focusDown)
,((modm, xK_d), onAllWS W.focusUp)
,((modm, xK_g), onAllWS W.swapMaster)
Unfortunately, Iâm still too terrible at Haskell to fix whatever is wrong with the above code, and havenât found any other modules that have the functionality I want. Any help would be appreciated!,((modm, xK_f), onAllWS W.focusDown)
,((modm, xK_d), onAllWS W.focusUp)
,((modm, xK_g), onAllWS W.swapMaster)
Thanks!
Alex