dotfiles/.scripts/cast_screenshot

9 lines
267 B
Plaintext
Raw Normal View History

2021-10-01 19:32:53 +02:00
#!/bin/sh
. "${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