|
|
@ -113,7 +113,7 @@ elif [ "$SUBJECT" = "area" ] ; then
|
|
|
|
GEOM=$(slurp -d)
|
|
|
|
GEOM=$(slurp -d)
|
|
|
|
# Check if user exited slurp without selecting the area
|
|
|
|
# Check if user exited slurp without selecting the area
|
|
|
|
if [ -z "$GEOM" ]; then
|
|
|
|
if [ -z "$GEOM" ]; then
|
|
|
|
exit
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
WHAT="Area"
|
|
|
|
WHAT="Area"
|
|
|
|
elif [ "$SUBJECT" = "active" ] ; then
|
|
|
|
elif [ "$SUBJECT" = "active" ] ; then
|
|
|
@ -132,7 +132,7 @@ elif [ "$SUBJECT" = "window" ] ; then
|
|
|
|
GEOM=$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp)
|
|
|
|
GEOM=$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp)
|
|
|
|
# Check if user exited slurp without selecting the area
|
|
|
|
# Check if user exited slurp without selecting the area
|
|
|
|
if [ -z "$GEOM" ]; then
|
|
|
|
if [ -z "$GEOM" ]; then
|
|
|
|
exit
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
WHAT="Window"
|
|
|
|
WHAT="Window"
|
|
|
|
else
|
|
|
|
else
|
|
|
|