From 897ec5a52d90378c3211490c03765a23863790c0 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 25 Mar 2022 15:55:54 -0600 Subject: 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. --- src/Main.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Main.hs') 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" -- cgit