river: Add passhthrough mode to disable river keys

`super+F11` enters passthrough mode (displayed on waybar) which disables
all normal keybinds that river listens to and - surprise - passes them
through to whatever application is running. The same binding exits the
mode.
This commit is contained in:
Marty Oehme 2024-09-16 20:11:56 +02:00
parent 290ddbf5a8
commit 1cc47ac7df
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -161,6 +161,13 @@ riverctl map interact_float None J send-layout-cmd $layout "main-count +1"
riverctl map interact_float None K send-layout-cmd $layout "main-count -1" riverctl map interact_float None K send-layout-cmd $layout "main-count -1"
### End resize and moving mode ### End resize and moving mode
## Passthrough mode which disables all other mappings and only retains the single
# mapping to return to normal mode. Useful for some full screen applications
# which should capture everything, or for testing nested wayland compositors.
riverctl declare-mode passthrough
riverctl map normal $mod F11 enter-mode passthrough
riverctl map passthrough $mod F11 enter-mode normal
# focus the next/previous output # focus the next/previous output
riverctl map normal $mod Period focus-output next riverctl map normal $mod Period focus-output next
riverctl map normal $mod Comma focus-output previous riverctl map normal $mod Comma focus-output previous