feat: added even better hotkeys for river.

This commit is contained in:
Andrey Parhomenko 2024-07-13 15:42:36 +05:00
parent 720ede3bda
commit 78ade2acee
2 changed files with 8 additions and 6 deletions

View file

@ -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"

View file

@ -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,