From 5fce06c20bf902a2b222c4858bf1bbbe21dee7d4 Mon Sep 17 00:00:00 2001 From: Karakurt <43828023+0Karakurt0@users.noreply.github.com> Date: Mon, 2 May 2022 23:19:03 +0300 Subject: [PATCH] Improved readability --- contrib/grimshot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/grimshot b/contrib/grimshot index f475ad8f..6d1468b3 100755 --- a/contrib/grimshot +++ b/contrib/grimshot @@ -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"