From 27ca3598a5de58591fc80c516f75b7f204954c5b Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 30 Apr 2025 13:22:06 +0200 Subject: update river config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .config/river/wl-kbptr-river-active-output | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 .config/river/wl-kbptr-river-active-output (limited to '.config/river/wl-kbptr-river-active-output') 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" $@ -- cgit 1.4.1