[xmonad] sending window to invisible workspace?
spencerjanssen at gmail.com
Tue Feb 17 16:09:28 EST 2009
On Tue, Feb 17, 2009 at 12:25:55PM -0800, lowly coder wrote:
> I have the following in xmonad.hs:
> myWorkspaces = ["0", "1", "2"]
> [((m .|. mod4Mask, key), screenWorkspace sc >>= flip whenJust
> (windows . f))
> | (key, sc) <- zip [xK_y, xK_u, xK_i]
> , (f, m) <- [(W.shift, 0), (W.shift, shiftMask)]]
> now, I'm also using screenLayout, giving me two 'workspaces' on a single
> mod4-y & mod4-u work when I have two workspcaes visible, but mod4-i does not
> when I only have one workspace visbile, mod4-u and mod4-i both do not work
> is there some rule saying "you can only send windows to visible workspaces"
There is no rule against sending windows to non-visible workspaces. The
problem is the code you've written uses screenWorkspace, which will return
Nothing if that screen doesn't exist. When screenWorkspace returns Nothing,
windows will not be executed.
More information about the xmonad