From 60fdefc3fdecb7e4d3697634e91b07356a3a5b4d Mon Sep 17 00:00:00 2001 From: Peter Kaplan Date: Mon, 7 Feb 2022 14:51:23 +0100 Subject: 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. --- completions/zsh/_riverctl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'completions/zsh') 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' -- cgit v1.2.3