From 22925407abfba806a1e6499332ea1e5ebb1ff47b Mon Sep 17 00:00:00 2001 From: Midgard <2885-Midgard@users.noreply.framagit.org> Date: Wed, 10 Jul 2024 06:43:25 +0200 Subject: [PATCH] [river] Update river-ultitile binds --- river/init | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/river/init b/river/init index 9459d58..c367405 100755 --- a/river/init +++ b/river/init @@ -126,20 +126,25 @@ else riverctl set-view-tags $((1 << (11 - 1))) fi -# Mod+U and Mod+I to increase/decrease the main size -riverctl map normal $mod U send-layout-cmd river-ultitile "set integer main-size += 5" -riverctl map normal $mod I send-layout-cmd river-ultitile "set integer main-size -= 5" +# Increase/decrease the main size +riverctl map normal $mod U send-layout-cmd river-ultitile "set integer main-size += 4" +riverctl map normal $mod I send-layout-cmd river-ultitile "set integer main-size -= 4" -# Mod+Shift+U and Mod+Shift+I to decrease/increase the main count -riverctl map normal $mod+Shift U send-layout-cmd river-ultitile "set integer main-count -= 1" -riverctl map normal $mod+Shift I send-layout-cmd river-ultitile "set integer main-count += 1" +# Decrease/increase the main size if it is in the center (on wide screens) +riverctl map normal $mod+Shift U send-layout-cmd river-ultitile "set global integer main-size-if-only-centered-main += 4" +riverctl map normal $mod+Shift I send-layout-cmd river-ultitile "set global integer main-size-if-only-centered-main -= 4" -# Mod+{Up,Right,Down,Left} to change layout +# Decrease/increase the main count +riverctl map normal $mod N send-layout-cmd river-ultitile "set integer main-count -= 1" +riverctl map normal $mod comma send-layout-cmd river-ultitile "set integer main-count += 1" + +# Change layout riverctl map normal $mod Up send-layout-cmd river-ultitile "set string layout = vstack" riverctl map normal $mod Right send-layout-cmd river-ultitile "set string layout = hstack" riverctl map normal $mod Down send-layout-cmd river-ultitile "set string layout = monocle" riverctl map normal $mod Left send-layout-cmd river-ultitile "set string layout = main" +# Cycle through layouts on all tags/outputs riverctl map normal $mod E spawn "riverctl send-layout-cmd river-ultitile 'unset-all-local layout'; riverctl send-layout-cmd river-ultitile 'set global string layout @ main hstack vstack'"