mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
Improved readability
This commit is contained in:
parent
bdde54602f
commit
5fce06c20b
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue