mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 17:01:29 +00:00
Improved readability
This commit is contained in:
parent
bdde54602f
commit
5fce06c20b
|
@ -133,7 +133,9 @@ elif [ "$SUBJECT" = "area" ] ; then
|
||||||
elif [ "$SUBJECT" = "active" ] ; then
|
elif [ "$SUBJECT" = "active" ] ; then
|
||||||
eval "$( swaymsg -t get_tree |\
|
eval "$( swaymsg -t get_tree |\
|
||||||
jq -r '..|try select(.focused == true)|
|
jq -r '..|try select(.focused == true)|
|
||||||
"GEOM=\"\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)\"\nAPP_ID=\"\(.app_id)\"\nWHAT=\"\(.app_id) window\""' )"
|
"GEOM=\"\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)\"
|
||||||
|
APP_ID=\"\(.app_id)\"
|
||||||
|
WHAT=\"\(.app_id) window\""' )"
|
||||||
elif [ "$SUBJECT" = "screen" ] ; then
|
elif [ "$SUBJECT" = "screen" ] ; then
|
||||||
GEOM=""
|
GEOM=""
|
||||||
WHAT="Screen"
|
WHAT="Screen"
|
||||||
|
|
Loading…
Reference in a new issue