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 <joshuarahm@gmail.com>2022-10-09 12:19:46 -0600
commit401b293fe6a726d24cf944e626c301262d726aad (patch)
tree6c459c551fea6b2d3c813a2d66126b0478717736 /src/Internal/Keys.hs
parenta1736a26f48c95574a682c260a311ef379e96352 (diff)
downloadrde-401b293fe6a726d24cf944e626c301262d726aad.tar.gz
rde-401b293fe6a726d24cf944e626c301262d726aad.tar.bz2
rde-401b293fe6a726d24cf944e626c301262d726aad.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