emersion / slurp

Select a region in a Wayland compositor

Home Page:https://wayland.emersion.fr/slurp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When piping dimensions into slurp, it still allows you to click and drag.

wildwestrom opened this issue · comments

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.

That's what -r is for.