[xmonad] switching to the workspace where a window just went?

Brandon Allbery allbery.b at gmail.com
Thu Dec 29 03:57:53 CET 2011


On Wed, Dec 28, 2011 at 21:36, Mike Meyer <mwm at mired.org> wrote:

> On Wed, 28 Dec 2011 17:25:33 -0800 (PST)
> Lara Michaels <laramichaels1978 at yahoo.com> wrote:
> > - send the current window to the next empty workspace AND THEN
> > - automatically take me to it (meaning, display the workspace to which
>
> I'm almost blue-skying here. I have no idea if this would work, but it
> at least type checks and might be a starting point:
>
> , ("C-<F1>", shiftTo Next EmptyWS >> moveTo Next EmptyWS)


It typechecks, but won't do what you want as the workspace will no longer
be empty.

Looking at the source to cycleWS, looks like what you want is something like

> ,("C-<F1>", doTo Next EmptyWS getSortByIndex $ \ws -> windows (shift ws)
>>
>                                                       windows (greedyView
ws))

-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20111228/0d6c9b40/attachment.htm>


More information about the xmonad mailing list