From e98d527f5d2547bf6279cd895c66a5269d463f16 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 2 Oct 2023 19:04:53 +0200 Subject: [PATCH] river: Add gap toggling key bind Use F10 to enable gaps (default) or Shift+F10 to disable gaps. TODO Would love to make it a toggle on pressing F10 alone, but I am not sure we can get the current gap width from the layout in any way. --- desktop/.config/river/init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop/.config/river/init b/desktop/.config/river/init index 64c907d..bc27a86 100755 --- a/desktop/.config/river/init +++ b/desktop/.config/river/init @@ -124,6 +124,9 @@ riverctl map normal $mod F toggle-fullscreen # Make all connected outputs show the desktop and no windows at all riverctl map normal $mod+Shift M spawn 'for i in $(wlopm | wc -l); do riverctl set-focused-tags $((1 << 10)); riverctl focus-output next; done; riverctl set-focused-tags $((1 << 10)); riverctl focus-output next' +riverctl map normal $mod+Shift F10 spawn 'riverctl send-layout-cmd rivercarro "gaps 0"' +riverctl map normal $mod F10 spawn 'riverctl send-layout-cmd rivercarro "gaps 6"' + # toggle float riverctl map normal $mod+Shift v toggle-float # Mod + Left Mouse Button to move views