more readable
This commit is contained in:
parent
ea2a9e0b45
commit
daf697f269
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ focus) # Screenshot of focused window
|
||||||
swaymsg -t get_tree |
|
swaymsg -t get_tree |
|
||||||
awk '
|
awk '
|
||||||
BEGIN { ORS=" " };
|
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/ {
|
/focused": true/,/window_rect/ {
|
||||||
if($1=="\"window_rect\":") lines_after=4;
|
if($1=="\"window_rect\":") lines_after=4;
|
||||||
if($1=="\"rect\":") lines_after=2
|
if($1=="\"rect\":") lines_after=2
|
||||||
|
|
Loading…
Reference in a new issue