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.
This commit is contained in:
Peter Kaplan
2022-02-07 14:51:23 +01:00
committed by Isaac Freund
parent ae349b0ce4
commit 60fdefc3fd
11 changed files with 345 additions and 5 deletions

View File

@ -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 \