From 5dff1db3dbed4378ac0fbd42fdd331ea6696318b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 16 Sep 2024 20:33:17 +0200 Subject: [PATCH] river: Add monocle mapping if running filtile layout When using filtile layout it also gives the option of using 'monocle' mode which is similar to fullscreen in that it only shows one window at a time (which also occupies the full screen, except for the statusbar) but you can cycle between the windows shown as you would usually between the different views in a tag. You can imagine the windows 'stacked' on top of each other and cycling which one is on top or on the bottom. Toggled with `Mod+Shift+F`, shifting up from fullscreen mode. TODO: Ideally, it would be accompanied by an indicator in the statusbar but I have no time to create one currently. Without one, it is sometimes hard to remember that other windows exist on the tag after a while. --- desktop/.config/river/init | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/desktop/.config/river/init b/desktop/.config/river/init index 5e29d4b..8a2bbf5 100755 --- a/desktop/.config/river/init +++ b/desktop/.config/river/init @@ -124,6 +124,12 @@ riverctl map normal $mod+Control L snap right # Mod+F to toggle fullscreen riverctl map normal $mod F toggle-fullscreen +# if we are running filtile we also have access to monocle mode +if [ "$layout" = "filtile" ]; then + riverctl map normal $mod+Shift F spawn "riverctl send-layout-cmd $layout monocle" +fi + +riverctl map normal $mod+Shift v toggle-float # shellcheck disable=SC2016 # Make all connected outputs show the desktop and no windows at all