summary refs log tree commit diff
path: root/.config/river/wl-kbptr-river-active-output
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2025-04-30 13:22:06 +0200
committerRobert Günzler <r@gnzler.io>2025-04-30 13:22:06 +0200
commit27ca3598a5de58591fc80c516f75b7f204954c5b (patch)
tree306b2483e8474b188ddd7895037e7d41ade1044c /.config/river/wl-kbptr-river-active-output
parenta04bebc3c33cc969eba03e74a91ddea6b4746553 (diff)
update river config
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
-rwxr-xr-x.config/river/wl-kbptr-river-active-output4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/river/wl-kbptr-river-active-output b/.config/river/wl-kbptr-river-active-output
new file mode 100755
index 0000000..97febff
--- /dev/null
+++ b/.config/river/wl-kbptr-river-active-output
@@ -0,0 +1,4 @@
+#!/bin/sh
+active_area=$(swaymsg -t get_tree | jq --raw-output \
+	'.. | (.nodes? + .floating_nodes? // empty)[] | select (.focused) | .rect | "\(.width)x\(.height)+\(.x)+\(.y)"')
+exec wl-kbptr --restrict "$active_area" $@