aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-08-24 14:52:47 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-08-24 18:57:43 +0200
commit989e7aaeda44b02bdb92455dfe7b58dafc28435c (patch)
tree69b5ef9f7159ad306222eacd844285ce2e7f6ea2 /contrib
parentfd8c5e641023efd5cb85c377917d6cc29427ba17 (diff)
downloadriver-989e7aaeda44b02bdb92455dfe7b58dafc28435c.tar.gz
river-989e7aaeda44b02bdb92455dfe7b58dafc28435c.tar.xz
config: implement map-pointer command
This command takes a mode, modifiers, button/event name, and pointer action as arguments. It stores these in the config data structure. The currently available pointer actions are move-view and resize-view, which replace the previously hard-coded functionality. Closing the hovered view with middle click has temorarily been removed until it is decided if we wish to make this another special pointer action or perhaps allow running any arbitrary command (which would of course include close).
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/config.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/config.sh b/contrib/config.sh
index 6b2cd72..261ed4b 100755
--- a/contrib/config.sh
+++ b/contrib/config.sh
@@ -37,6 +37,12 @@ riverctl map normal $mod L mod-master-factor +0.05
riverctl map normal $mod+Shift H mod-master-count +1
riverctl map normal $mod+Shift L mod-master-count -1
+# Mod + Left Mouse Button to move views
+riverctl map-pointer normal $mod BTN_LEFT move-view
+
+# Mod + Right Mouse Button to resize views
+riverctl map-pointer normal $mod BTN_RIGHT resize-view
+
for i in $(seq 1 9); do
tagmask=$((1 << ($i - 1)))