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

Lara Michaels laramichaels1978 at yahoo.com
Fri Dec 30 17:03:29 CET 2011


Mike -

> , ("C-<F1>", shiftTo Next EmptyWS >> moveTo Next EmptyWS)

Thank you for this. :) I tried it out and what it does is 

- it send the current window to the next empty workspace (e.g. display '5'); and it then
- displays on the current screen the next empty workspace *coming after* the (previously
empty) workspace that window just went to.

An example: I have workspaces 1,2,3. All are empty except for workspace 1, where I 
have two windows. I press C-<F1> and (A) the window gets sent to workspace 2 and (B) 
workspace 3 is displayed.

I guess it might have something to do with the order in which EmptyWS is being evaluated? 
(I am afraid I know nothing about Haskell.) By the time "moveTo Next EmptyWS" is executed,
the workspace to which the window just got sent is no longer part of EmptyWS?

Does anyone know if it is possible to move to the workspace where the window just got sent to?

thanks and have a great 2012!
~l




More information about the xmonad mailing list