mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-25 06:18:44 +01:00
fixed window-screenshot.sh
This commit is contained in:
parent
36ca408b4b
commit
1640371125
|
@ -4,5 +4,5 @@ eval $(xwininfo -id $(xdotool getactivewindow) |
|
||||||
-e "s/^ \+Absolute upper-left Y: \+\([0-9]\+\).*/y=\1/p" \
|
-e "s/^ \+Absolute upper-left Y: \+\([0-9]\+\).*/y=\1/p" \
|
||||||
-e "s/^ \+Width: \+\([0-9]\+\).*/w=\1/p" \
|
-e "s/^ \+Width: \+\([0-9]\+\).*/w=\1/p" \
|
||||||
-e "s/^ \+Height: \+\([0-9]\+\).*/h=\1/p" )
|
-e "s/^ \+Height: \+\([0-9]\+\).*/h=\1/p" )
|
||||||
echo -n "''$x ''$y ''$w ''$h"
|
echo -n "$x $y $w $h"
|
||||||
flameshot gui --region "''${w}x''${h}+''${x}+''${y}" -c -p ~/Pictures/screenshots/
|
flameshot gui --region "${w}x${h}+${x}+${y}" -c -p ~/Pictures/screenshots/
|
||||||
|
|
Loading…
Reference in a new issue