From 1cc47ac7df21838ce963ffe30773d7740cc9fce0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 16 Sep 2024 20:11:56 +0200 Subject: [PATCH] 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. --- desktop/.config/river/init | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop/.config/river/init b/desktop/.config/river/init index debf7fc..6f93d12 100755 --- a/desktop/.config/river/init +++ b/desktop/.config/river/init @@ -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" ### 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 riverctl map normal $mod Period focus-output next riverctl map normal $mod Comma focus-output previous