When piping dimensions into slurp, it still allows you to click and drag.
wildwestrom opened this issue · comments
West commented
Here's what I mean.
DIMENSIONS=$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"')
# DIMENSIONS has let's say 3 different dimensions.
echo $DIMENSIONS | slurp
# I pick one of them, let's say. '4,59 955x1017'
# It still allows me to pick any dimensions I want by dragging.
127,207 693x676
# I would prefer different behavior.
Simon Ser commented
That's what -r
is for.