aboutsummaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
authorPeter Kaplan <peter@pkap.de>2022-02-07 14:51:23 +0100
committerIsaac Freund <mail@isaacfreund.com>2022-04-14 12:49:47 +0200
commit60fdefc3fdecb7e4d3697634e91b07356a3a5b4d (patch)
tree78c0d87b0a8e2750314112452aad27cf0eab27f0 /completions
parentae349b0ce45b44b79a0a93e89c2cd05d24bb63d4 (diff)
downloadriver-60fdefc3fdecb7e4d3697634e91b07356a3a5b4d.tar.gz
river-60fdefc3fdecb7e4d3697634e91b07356a3a5b4d.tar.xz
input: add map-switch/unmap-switch commands
This allows running a command on a laptop's lid being opened/closed or a tablet's button/switch being pressed/toggled.
Diffstat (limited to 'completions')
-rw-r--r--completions/bash/riverctl2
-rw-r--r--completions/fish/riverctl.fish2
-rw-r--r--completions/zsh/_riverctl2
3 files changed, 6 insertions, 0 deletions
diff --git a/completions/bash/riverctl b/completions/bash/riverctl
index bfee3f1..692dcaa 100644
--- a/completions/bash/riverctl
+++ b/completions/bash/riverctl
@@ -34,8 +34,10 @@ function __riverctl_completion ()
enter-mode \
map \
map-pointer \
+ map-switch \
unmap \
unmap-pointer \
+ unmap-switch \
attach-mode \
background-color \
border-color-focused \
diff --git a/completions/fish/riverctl.fish b/completions/fish/riverctl.fish
index 7b2ee76..36cf750 100644
--- a/completions/fish/riverctl.fish
+++ b/completions/fish/riverctl.fish
@@ -45,8 +45,10 @@ complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'declare-mode'
complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'enter-mode' -d 'Switch to given mode if it exists'
complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'map' -d 'Run command when key is pressed while modifiers are held down and in the specified mode'
complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'map-pointer' -d 'Move or resize views when button and modifers are held down while in the specified mode'
+complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'map-switch ' -d 'Run command when river receives a switch event in the specified mode'
complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'unmap' -d 'Remove the mapping defined by the arguments'
complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'unmap-pointer' -d 'Remove the pointer mapping defined by the arguments'
+complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'unmap-switch' -d 'Remove the switch mapping defined by the arguments'
# Configuration
complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'attach-mode' -d 'Configure where new views should attach to the view stack'
complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'background-color' -d 'Set the background color'
diff --git a/completions/zsh/_riverctl b/completions/zsh/_riverctl
index 2aa663e..745484d 100644
--- a/completions/zsh/_riverctl
+++ b/completions/zsh/_riverctl
@@ -39,8 +39,10 @@ _riverctl_subcommands()
'enter-mode:Switch to given mode if it exists'
'map:Run command when key is pressed while modifiers are held down and in the specified mode'
'map-pointer:Move or resize views when button and modifiers are held down while in the specified mode'
+ 'map-switch:Run command when river receives a switch event in the specified mode'
'unmap:Remove the mapping defined by the arguments'
'unmap-pointer:Remove the pointer mapping defined by the arguments'
+ 'unmap-switch:Remove the switch mapping defined by the arguments'
# Configuration
'attach-mode:Configure where new views should attach to the view stack'
'background-color:Set the background color'