diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-08-24 14:52:47 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-08-24 18:57:43 +0200 |
| commit | 989e7aaeda44b02bdb92455dfe7b58dafc28435c (patch) | |
| tree | 69b5ef9f7159ad306222eacd844285ce2e7f6ea2 /contrib/config.sh | |
| parent | fd8c5e641023efd5cb85c377917d6cc29427ba17 (diff) | |
| download | river-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/config.sh')
| -rwxr-xr-x | contrib/config.sh | 6 |
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))) |
