aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-04-12 11:45:41 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:46 -0600
commit424bfdffa0a4f16a17f8ed84f9247800dfa671d1 (patch)
tree30f4d354693fe7563eef7e32c0ac6c6e90ff438a /src
parent78b1ba125ec327512deb4c4c481cdf875d6c7339 (diff)
downloadrde-424bfdffa0a4f16a17f8ed84f9247800dfa671d1.tar.gz
rde-424bfdffa0a4f16a17f8ed84f9247800dfa671d1.tar.bz2
rde-424bfdffa0a4f16a17f8ed84f9247800dfa671d1.zip
Change keys to make H+Space a leader key for doing layout related stuff. Not sure how I feel about it right now; it'll take some getting used to.
Diffstat (limited to 'src')
-rw-r--r--src/Rahm/Desktop/Keys.hs44
1 files changed, 34 insertions, 10 deletions
diff --git a/src/Rahm/Desktop/Keys.hs b/src/Rahm/Desktop/Keys.hs
index 5284a9d..33830dc 100644
--- a/src/Rahm/Desktop/Keys.hs
+++ b/src/Rahm/Desktop/Keys.hs
@@ -263,7 +263,7 @@ keymap = runKeys $ do
justMod $
doc "Goto a workspace\n\n\t\
- \If the second character typed is alpha-numberic, jump to that\n\t\
+ \If the second character typed is alpha-numeric, jump to that\n\t\
\workspace. The workspace is created on-the-fly if such a workspace\n\t\
\does not exist.\n\n\t\
@@ -412,15 +412,39 @@ keymap = runKeys $ do
altMod $ spawnX "sudo -A systemctl suspend && xsecurelock"
bind xK_space $ do
- justMod $
- doc "Use the next layout in the layout list." $ sendMessage toNextLayout
-
- altMod $
- doc "Reset the layout to the default layout." $ sendMessage toFirstLayout
-
- shiftMod $
- doc "Use the previous layout in the layout list." $
- sendMessage toPreviousLayout
+ justMod $ subkeys $ do
+
+ bind xK_n $
+ noMod $ doc "Use the next layout in the layout list." $
+ sendMessage toNextLayout
+
+ bind xK_p $
+ noMod $ doc "Use the previous layout in thelayout list." $
+ sendMessage toPreviousLayout
+
+ bind xK_b $
+ noMod $ doc "Go back to the first layout in the layout list." $
+ sendMessage toFirstLayout
+
+ bind xK_h $
+ noMod $ doc "Flip the layout across the horizontal axis" $
+ sendMessage flipVertically
+
+ bind xK_v $
+ noMod $ doc "Flip the layout across the vertical axis" $
+ sendMessage flipHorizontally
+
+ bind xK_r $
+ noMod $ doc "Rotate the layout 90 degrees" $
+ sendMessage rotateLayout
+
+ bind xK_t $
+ noMod $ doc "Toggle the pop window" $
+ sendMessage togglePop
+
+ bind xK_x $
+ noMod $ doc "Toggle the hole" $
+ sendMessage toggleHole
bind xK_t $ do
justMod $