aboutsummaryrefslogtreecommitdiff
path: root/src/Internal/Keys.hs
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2020-02-07 14:59:09 -0700
committerJosh Rahm <rahm@google.com>2020-02-07 14:59:09 -0700
commit7bd59751a820dbdfb132ae2f06be518bd2f7fad4 (patch)
treec59b266543888e66861e5bef98b2d06222057348 /src/Internal/Keys.hs
parent8c6abcaebc16c8dd805a3a8f9cc57e35890c3bc5 (diff)
downloadrde-7bd59751a820dbdfb132ae2f06be518bd2f7fad4.tar.gz
rde-7bd59751a820dbdfb132ae2f06be518bd2f7fad4.tar.bz2
rde-7bd59751a820dbdfb132ae2f06be518bd2f7fad4.zip
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.
Diffstat (limited to 'src/Internal/Keys.hs')
-rw-r--r--src/Internal/Keys.hs6
1 files changed, 4 insertions, 2 deletions
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 ())