aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-03-25 15:55:54 -0600
committerJosh Rahm <rahm@google.com>2022-03-25 15:55:54 -0600
commita7129b68fb7fa4f7cea52513fad7223dcbba9801 (patch)
tree35626d34fed9f5e7d48ad1f2965c6451880a8647 /src/Main.hs
parente5f6b5109aab58b5d066ada7c542d0ecb991cafb (diff)
downloadrde-a7129b68fb7fa4f7cea52513fad7223dcbba9801.tar.gz
rde-a7129b68fb7fa4f7cea52513fad7223dcbba9801.tar.bz2
rde-a7129b68fb7fa4f7cea52513fad7223dcbba9801.zip
Another Chrome binding added.
There's a bug where it seems the mappings are applied inconsistently after a restart. Not sure what causes that. Seems bouncing XMonad again fixes it.
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index b2a20d7..19050ab 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -40,8 +40,10 @@ main = do
-- The geniuses that made chrome decided that Ctrl+W should kill
-- the current tab! This makes it consistent with the rest of the
-- world ... ctrl+w deletes the last word (ctrl+backspace).
- rebindKey (controlMask, xK_w) (controlMask, xK_BackSpace),
- rebindKey (controlMask, xK_h) (0, xK_BackSpace)
+ rebindKey (controlMask, xK_w) (controlMask, xK_BackSpace)
+ , rebindKey (controlMask, xK_h) (0, xK_BackSpace)
+ , rebindKey (controlMask, xK_u) (controlMask .|. shiftMask, xK_BackSpace)
+ , rebindKey (controlMask, xK_b) (controlMask, xK_w)
]
]) $ def
{ terminal = "alacritty"