Alternate promote function for xmonad.
Moves the focused window to the master pane. All other windows retain their order. If focus is in the master, swap it with the next window in the stack. Focus stays in the master.
You can use this module with the following in your
then add a keybinding or substitute
promote in place of swapMaster:
, ((modm, xK_Return), promote)
For detailed instructions on editing your key bindings, see XMonad.Doc.Extending.