blob: 97febffdb33a615e7dcdf8fb3620aff1b9e89f9d (
plain) (
blame)
1
2
3
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" $@
|