From b7272ba8c84f254c3b7efcaf3d8e20686eeb0b1c Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 12 Nov 2021 13:08:24 -0700 Subject: Change swapMaster. Swap master now swaps the master window with the prior master window if swapMaster is called while the master window is focused. --- src/Internal/Keys.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Internal/Keys.hs') diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs index 591861f..3b61dac 100644 --- a/src/Internal/Keys.hs +++ b/src/Internal/Keys.hs @@ -1,6 +1,7 @@ {-# LANGUAGE RankNTypes #-} module Internal.Keys where +import Internal.SwapMaster (swapMaster) import XMonad.Hooks.ManageDocks import XMonad.Layout.MosaicAlt import Graphics.X11.ExtraTypes.XorgDefault @@ -85,7 +86,7 @@ newKeys = , ((modm .|. shiftMask, xK_l), windows W.swapDown) , ((modm , xK_f), sendMessage FlipLayout) , ((modm .|. shiftMask, xK_f), sendMessage HFlipLayout) - , ((modm , xK_Return), windows W.swapMaster) + , ((modm , xK_Return), swapMaster) , ((modm, xK_j), sendMessage Shrink) , ((modm, xK_k), sendMessage Expand) , ((modm .|. shiftMask, xK_r), sendMessage DoRotate) -- cgit