From 916633ca48857d57936b178e57794f7b45e70137 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Mon, 28 Mar 2022 00:24:45 -0600 Subject: Add Brave to list of browsers to intercept keystrokes. Add mouse bindingns for dragging and resizing. button13+LeftMouse = Drag button13+RightMouse = Resize button13+button13 = retile --- src/Internal/Keys.hs | 8 +++++++- src/Main.hs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs index c40c346..d03557c 100644 --- a/src/Internal/Keys.hs +++ b/src/Internal/Keys.hs @@ -441,12 +441,18 @@ mouseMap = runButtons $ do forM_ (map fst mediaButtons) $ \b -> bind b $ noMod $ continuous mediaButtons b + bind button13 $ noMod $ subMouse $ do + bind button1 $ noMod mouseMoveWindow + bind button3 $ noMod mouseResizeWindow + bind button13 $ noMod $ windows . W.sink + + bind button15 $ do noMod $ subMouse $ do bind button15 $ do - noMod $ \_ -> jumpToLast + noMod $ const jumpToLast let workspaceButtons = [ diff --git a/src/Main.hs b/src/Main.hs index 19050ab..379131c 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -36,7 +36,7 @@ main = do (=<<) X.xmonad $ applyKeys $ ewmh $ docks $ windowHooks (composeAll [ - className =? "Google-chrome" --> composeAll [ + (className =? "Google-chrome" <||> className =? "Brave-browser") --> composeAll [ -- 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). -- cgit