From daf697f269e19192af8a14569a1648795801f848 Mon Sep 17 00:00:00 2001 From: Leaced Date: Sun, 26 Mar 2023 10:39:57 +0200 Subject: [PATCH] more readable --- .config/sway/screenshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sway/screenshot.sh b/.config/sway/screenshot.sh index acb062a..13aa0e0 100644 --- a/.config/sway/screenshot.sh +++ b/.config/sway/screenshot.sh @@ -13,7 +13,7 @@ focus) # Screenshot of focused window swaymsg -t get_tree | awk ' BEGIN { ORS=" " }; - lines_after&&lines_after-- {print $2+0}; #loop over n lines. Print only numbers + lines_after&&lines_after-- {print $2}; /focused": true/,/window_rect/ { if($1=="\"window_rect\":") lines_after=4; if($1=="\"rect\":") lines_after=2