mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2025-09-06 11:31:38 +02:00
move some files around
This commit is contained in:
parent
df402becef
commit
5bc1b7fc2b
29 changed files with 197 additions and 247 deletions
8
other/scripts/desktop/window-screenshot.sh
Normal file
8
other/scripts/desktop/window-screenshot.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
unset x y w h
|
||||
eval $(xwininfo -id $(xdotool getactivewindow) |
|
||||
sed -n -e "s/^ \+Absolute upper-left X: \+\([0-9]\+\).*/x=\1/p" \
|
||||
-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/
|
Loading…
Add table
Add a link
Reference in a new issue