screenshot selection color was pywalled

This commit is contained in:
qvalentin 2022-04-09 16:54:46 +02:00
parent b2fce36b80
commit 0eb83b5dc7
Signed by: qvalentin
GPG Key ID: C979FA1EAFCABF1C
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
#!/bin/sh
filename="/home/qv/Pictures/screenshots/$(date -u +"%Y-%m-%d%H%M%S")-screenshot.png"
selection=$(hacksaw -f "-i %i -g %g")
. "${HOME}/.cache/wal/colors.sh"
filename="${HOME}/Pictures/screenshots/$(date -u +"%Y-%m-%d%H%M%S")-screenshot.png"
selection=$(hacksaw -f "-i %i -g %g" --colour $color4)
shotgun $selection $filename
xclip -t 'image/png' -selection clipboard < $filename