aboutsummaryrefslogtreecommitdiff
path: root/src/Internal
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-03-28 14:05:30 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:45 -0600
commit8a87b96dceb52cd3090bd9c2b1c5648f310389b0 (patch)
tree56fe66beb857771e921ae6936e5afa439e376813 /src/Internal
parent2169e0ca8a9673b600c40a81de61fc0d86e89452 (diff)
downloadrde-8a87b96dceb52cd3090bd9c2b1c5648f310389b0.tar.gz
rde-8a87b96dceb52cd3090bd9c2b1c5648f310389b0.tar.bz2
rde-8a87b96dceb52cd3090bd9c2b1c5648f310389b0.zip
add swallow behavior. Add more Chrome bindings.
Diffstat (limited to 'src/Internal')
-rw-r--r--src/Internal/Keys.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs
index 13112cb..b322eb4 100644
--- a/src/Internal/Keys.hs
+++ b/src/Internal/Keys.hs
@@ -49,6 +49,7 @@ import Internal.DMenu
import Internal.PassMenu
import Internal.Logger
import Internal.RebindKeys
+import Internal.Swallow
import Internal.ScreenRotate (screenRotateForward, screenRotateBackward)
type KeyMap l = XConfig l -> Map (KeyMask, KeySym) (X ())
@@ -322,6 +323,9 @@ keymap = runKeys $ do
bind xK_o $
(justMod -|- noMod) $ spawn "library-view.sh"
+ bind xK_s $
+ (justMod -|- noMod) toggleSwallowEnabled
+
bind xK_v $ do
(justMod -|- noMod) $ spawn "set-volume.sh"
(shiftMod -|- rawMask shiftMask) $ spawn "set-volume.sh -a"
@@ -420,6 +424,9 @@ mouseMap = runButtons $ do
bind button14 $ do
noMod $ subMouse $ do
+ bind button3 $
+ noMod $ const (gotoWorkspace 's')
+
bind button13 $ do
noMod $ \_ -> click >> CopyWindow.kill1