diff options
Diffstat (limited to '')
| -rwxr-xr-x | .config/river/wl-kbptr-river-active-output | 4 |
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" $@ |