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

Norbert Zeh nzeh at cs.dal.ca
Fri Dec 30 17:18:17 CET 2011


Lara Michaels [2011.12.30 0803 -0800]:
> 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?

Brandon Allberry already provided the answer.

N.



More information about the xmonad mailing list