From 7bd59751a820dbdfb132ae2f06be518bd2f7fad4 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 7 Feb 2020 14:59:09 -0700 Subject: Add LayoutModifier that ollows windows to be zoomed on with modm-z. When this happens, the window will float in the middle of the screen. --- src/Internal/Keys.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Internal/Keys.hs') diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs index b710acf..a397467 100644 --- a/src/Internal/Keys.hs +++ b/src/Internal/Keys.hs @@ -1,5 +1,6 @@ module Internal.Keys where +import Internal.Layout import Text.Printf import Internal.PromptConfig import Data.List @@ -107,12 +108,13 @@ newKeys = , ((modm .|. shiftMask, xK_bracketleft), sendMessage (IncMasterN (-1))) , ((modm .|. shiftMask, xK_bracketright), sendMessage (IncMasterN 1)) - , ((modm, xK_bracketleft), sendMessage Shrink) - , ((modm, xK_bracketright), sendMessage Expand) + , ((modm, xK_bracketleft), sendMessage ShrinkZoom) + , ((modm, xK_bracketright), sendMessage ExpandZoom) , ((modm, xK_space), sendMessage NextLayout) , ((modm, xK_q), spawn "xmonad --recompile && xmonad --restart") + , ((modm, xK_z), sendMessage ToggleZoom) ] mapNumbersAndAlpha :: KeyMask -> (Char -> X ()) -> Map (KeyMask, KeySym) (X ()) -- cgit