mod-return currently swaps the focused window with the master window. What I want is to move the focused window to the master and have the rest move over one place. So the end result is as if I had pressed mod-shift-k a couple of times.

1 Answer 1


Xmonad.StackSet.shiftMaster does exactly that.

Simply add a line looking like this to your keys configuration:

, ((modMask,               xK_Return), windows W.shiftMaster)

Or, if you use additionalKeysP from XMonad.Util.EZConfig,

, ("M-<Return>", windows W.shiftMaster)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.