From 1640371125e2ace110c9b524a59c59a115dd39b1 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Mon, 19 Sep 2022 00:40:42 +0200 Subject: [PATCH] fixed window-screenshot.sh --- scripts/desktop/window-screenshot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/desktop/window-screenshot.sh b/scripts/desktop/window-screenshot.sh index b337a26..5ff7359 100644 --- a/scripts/desktop/window-screenshot.sh +++ b/scripts/desktop/window-screenshot.sh @@ -4,5 +4,5 @@ eval $(xwininfo -id $(xdotool getactivewindow) | -e "s/^ \+Absolute upper-left Y: \+\([0-9]\+\).*/y=\1/p" \ -e "s/^ \+Width: \+\([0-9]\+\).*/w=\1/p" \ -e "s/^ \+Height: \+\([0-9]\+\).*/h=\1/p" ) -echo -n "''$x ''$y ''$w ''$h" -flameshot gui --region "''${w}x''${h}+''${x}+''${y}" -c -p ~/Pictures/screenshots/ +echo -n "$x $y $w $h" +flameshot gui --region "${w}x${h}+${x}+${y}" -c -p ~/Pictures/screenshots/