cast screenshot with shotgun and hacksaw (fixed picom conf)

This commit is contained in:
qvalentin 2022-04-09 15:50:46 +02:00
parent 1d5c7f05d3
commit b2fce36b80
Signed by: qvalentin
GPG Key ID: C979FA1EAFCABF1C
1 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
#!/bin/sh #!/bin/sh
scrot -s -e 'xclip -selection clipboard -t "image/png" < $f && mv $f ~/Pictures/screenshots' filename="/home/qv/Pictures/screenshots/$(date -u +"%Y-%m-%d%H%M%S")-screenshot.png"
selection=$(hacksaw -f "-i %i -g %g")
shotgun $selection $filename
xclip -t 'image/png' -selection clipboard < $filename