From 9ec7edb2f894ec8363c72f827f2b17bc4cbfd1fb Mon Sep 17 00:00:00 2001 From: Adam Gausmann Date: Mon, 13 Jan 2025 21:52:11 -0600 Subject: [PATCH] river: fix binding; add secondary-grid layout, floating rules, swayidle --- templates/.config/river/init | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/.config/river/init b/templates/.config/river/init index af0f8b2..1353ae0 100755 --- a/templates/.config/river/init +++ b/templates/.config/river/init @@ -5,7 +5,7 @@ riverctl map normal Super D spawn 'wofi --show drun' riverctl map normal Super+Shift D spawn 'wofi --show run' riverctl map normal Super P spawn wofi-pass riverctl map normal Super+Shift S spawn 'wl-copy < "$(grimshot --notify save window)"' -riverctl map normal Super+Ctrl S spawn 'wl-copy < "$(grimshot --notify save area)"' +riverctl map normal Super+Control S spawn 'wl-copy < "$(grimshot --notify save area)"' riverctl map normal Super+Shift P spawn swaylock @@ -127,6 +127,12 @@ riverctl default-layout rivertile riverctl map normal Super E output-layout bsp-layout riverctl map normal Super W output-layout rivertile riverctl map normal Super G output-layout uniform-grid +riverctl map normal Super S output-layout secondary-grid + +# TODO: automated script to register windows to always float +riverctl rule-add -app-id wsjtx -title "* Wide Graph" float +riverctl rule-add -app-id GridTracker -title Alerts float +riverctl rule-add -app-id wsjtx -title "* Log QSO" float # Only run these at the first load. if [ -z $RIVER_RELOAD ] @@ -137,6 +143,7 @@ then rivertile -view-padding 6 -outer-padding 6 & river-bsp-layout & river-uniform-grid-layout & + river-secondary-grid-layout & # Daemons pipewire & @@ -144,6 +151,7 @@ then pipewire-pulse & dunst & udiskie & + swayidle & # Bar i3bar-river &