aboutsummaryrefslogtreecommitdiff
path: root/src/Internal/Keys.hs
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-04-08 14:41:34 -0600
committerJosh Rahm <rahm@google.com>2022-04-08 14:41:34 -0600
commitc264ad435597ea6bf68c386195919209c8f2a3e3 (patch)
tree6c459c551fea6b2d3c813a2d66126b0478717736 /src/Internal/Keys.hs
parent1c5e867dd7183ffef0611d3bbbd50f06c1022328 (diff)
downloadrde-c264ad435597ea6bf68c386195919209c8f2a3e3.tar.gz
rde-c264ad435597ea6bf68c386195919209c8f2a3e3.tar.bz2
rde-c264ad435597ea6bf68c386195919209c8f2a3e3.zip
Cleanup and more documentation.
Diffstat (limited to 'src/Internal/Keys.hs')
-rw-r--r--src/Internal/Keys.hs23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs
index 748aae2..40ad0af 100644
--- a/src/Internal/Keys.hs
+++ b/src/Internal/Keys.hs
@@ -46,6 +46,7 @@ import XMonad.Actions.SpawnOn as SpawnOn
import qualified Data.Map as Map
import qualified XMonad.StackSet as W
+import Internal.LayoutZipper
import Internal.MouseMotion
import Internal.Windows
import Internal.Lib
@@ -401,13 +402,25 @@ keymap = runKeys $ do
altMod $ spawnX "sudo -A systemctl suspend && xsecurelock"
bind xK_space $ do
- justMod $ sendMessage NextLayout
- shiftMod $ sendMessage NextLayout
+ justMod $
+ doc "Use the next layout in the layout list." $ sendMessage ToNextLayout
+
+ altMod $
+ doc "Reset the layout to the default layout." $ sendMessage (SetLayout 0)
+
+ shiftMod $
+ doc "Use the previous layout in the layout list." $
+ sendMessage ToPreviousLayout
bind xK_t $ do
- justMod $ spawnX (terminal config)
- shiftMod $ withFocused $ windows . W.sink
- altMod $ spawnX (terminal config ++ " -t Floating\\ Term")
+ justMod $
+ doc "Spawn a terminal." $ spawnX (terminal config)
+
+ shiftMod $
+ doc "Sink the current window into the tiling." $ withFocused $ windows . W.sink
+
+ altMod $
+ doc "Spawn a floating terminal" $ spawnX (terminal config ++ " -t Floating\\ Term")
bind xK_v $
-- Allows repeated strokes of M-h and M-l to reduce and increase volume