aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-03-28 12:11:48 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:45 -0600
commit2169e0ca8a9673b600c40a81de61fc0d86e89452 (patch)
treef5c6dc48f9c7e632a9b454da11ae337b9f3f7b69 /src
parent0762cb0962e269caa70d5aa6c012a2a3fc1140c9 (diff)
downloadrde-2169e0ca8a9673b600c40a81de61fc0d86e89452.tar.gz
rde-2169e0ca8a9673b600c40a81de61fc0d86e89452.tar.bz2
rde-2169e0ca8a9673b600c40a81de61fc0d86e89452.zip
Figured out the flakiness was due to withAll only applying to windows on the current workspace instead of _all_ windows. Poor naming.
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 0514a99..8abee5e 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -11,8 +11,8 @@ import XMonad.Layout.Fullscreen (fullscreenEventHook)
import System.Environment (setEnv)
import Data.Monoid
-import Internal.XMobarLog
import Internal.Windows
+import Internal.XMobarLog
import Internal.Keys
import Internal.Layout
import Internal.Logger
@@ -41,8 +41,16 @@ main = do
-- 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)
+
+ -- Terminal Ctrl-H sends a backspace. (Technically not, but that's
+ -- usually the semantics). Make it this way in Chrome.
, rebindKey (controlMask, xK_h) (0, xK_BackSpace)
+
+ -- Ctrl+u usually deletes the whole line. This is roughly
+ -- ctrl+shift+backspace
, rebindKey (controlMask, xK_u) (controlMask .|. shiftMask, xK_BackSpace)
+
+ -- Make it to ctrl+b deletes the current tab instead of ctrl+w.
, rebindKey (controlMask, xK_b) (controlMask, xK_w)
]
]) $ def