Improved readability

This commit is contained in:
Karakurt 2022-05-02 23:19:03 +03:00 committed by GitHub
parent bdde54602f
commit 5fce06c20b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,9 @@ elif [ "$SUBJECT" = "area" ] ; then
elif [ "$SUBJECT" = "active" ] ; then
eval "$( swaymsg -t get_tree |\
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
GEOM=""
WHAT="Screen"