aboutsummaryrefslogtreecommitdiff
path: root/river/init
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-01-23 21:19:15 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2024-01-23 21:26:31 -0500
commit4f3129909cc22ffdc4a3db484d999a580605a69f (patch)
tree1ba8b53a6893e3c27bf79b0c3738e420b58590e1 /river/init
parentd931ceaf517fdec540d91fb9b363b5f2db65eb32 (diff)
downloadrivercfg-4f3129909cc22ffdc4a3db484d999a580605a69f.tar.gz
rivercfg-4f3129909cc22ffdc4a3db484d999a580605a69f.tar.xz
Add a rather hacky method of adjusting the padding dynamically.
Diffstat (limited to 'river/init')
-rwxr-xr-xriver/init6
1 files changed, 6 insertions, 0 deletions
diff --git a/river/init b/river/init
index 09a3b8c..2fa9893 100755
--- a/river/init
+++ b/river/init
@@ -163,6 +163,12 @@ riverctl rule-add -app-id "bar" csd
riverctl default-layout rivertile
rivertile -view-padding 0 -outer-padding 0 &
+riverctl map normal Super Equal spawn "$HOME/.config/river/padding_helper 0 25"
+riverctl map normal Super Minus spawn "$HOME/.config/river/padding_helper 0 -25"
+
+riverctl map normal Super+Shift Equal spawn "$HOME/.config/river/padding_helper 10 0"
+riverctl map normal Super+Shift Minus spawn "$HOME/.config/river/padding_helper -10 0"
+
riverctl map normal Super+Control L spawn swaylock
riverctl map normal Super D spawn bemenu-run
riverctl map normal Super B spawn 'pkill -SIGUSR1 waybar'