From 78ade2acee57c19c0e6d73840c2e5c64eb30909a Mon Sep 17 00:00:00 2001 From: surdeus Date: Sat, 13 Jul 2024 15:42:36 +0500 Subject: [PATCH] feat: added even better hotkeys for river. --- river/init | 8 ++++---- waybar/config.jsonc | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/river/init b/river/init index 682a421..51db493 100755 --- a/river/init +++ b/river/init @@ -13,8 +13,8 @@ # Super+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot) riverctl map normal Super+Shift Return spawn "$XTERMINAL" -# Super+Q to close the focused view -riverctl map normal Super Q close +# Close the focused view. +riverctl map normal Super X close # Super+Shift+E to exit river riverctl map normal Super+Shift E exit @@ -37,13 +37,13 @@ riverctl map normal Super+Shift Period send-to-output -current-tags next riverctl map normal Super+Shift Comma send-to-output -current-tags previous # bump the focused view to the top of the layout stack -riverctl map normal Super S zoom +riverctl map normal Super R zoom # Super+H and Super+L to decrease/increase the main ratio of rivertile(1) riverctl map -repeat normal Super H send-layout-cmd rivertile "main-ratio -0.05" riverctl map -repeat normal Super L send-layout-cmd rivertile "main-ratio +0.05" -# Super+Shift+H and Super+Shift+L to increment/decrement the main count of rivertile(1) +# Increment/decrement the main count of rivertile(1) riverctl map normal Super I send-layout-cmd rivertile "main-count +1" riverctl map normal Super D send-layout-cmd rivertile "main-count -1" diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 4edaae8..2993d56 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -8,11 +8,13 @@ "min-length": 50, "on-scroll-up" : "riverctl focus-view next", "on-scroll-down" : "riverctl focus-view previous", - "on-click-middle" : "riverctl close" + "on-click-middle" : "riverctl close", }, "river/mode" : { - "format": " {} " + "format": " {} ", + "on-click" : "riverctl send-layout-cmd rivertile 'main-ratio -0.05'", + "on-click-right" : "riverctl send-layout-cmd rivertile 'main-ratio +0.05'" }, "privacy": { "icon-spacing": 4,