[xmonad] Move window to slave on another workspace

wagnerdm at seas.upenn.edu wagnerdm at seas.upenn.edu
Sun Sep 18 19:14:09 CEST 2011

Quoting Toby Cubitt <tsc25 at cantab.net>:

> I have keybindings along the lines of
>   [ ((modMask .|. mod1Mask, k), windows (W.shift i))
>     | (i, k) <- zip myWorkspaces [xK_F1 .. xK_F12] ]
> for calling "windows (W.shift i)" to move the current window to a given
> workspace using Mod+Fn.
> The problem is, this usually moves the window to the master slot on the
> target workspace. Whereas I almost invariably want it moved to a slave
> slot.

Try this:

   [ ((modMask .|. mod1Mask, k), windows (onWorkspace i swapDown . W.shift i))
     | (i, k) <- zip myWorkspaces [xK_F1 .. xK_F12] ]


More information about the xmonad mailing list