diff --git a/.scripts/cast_screenshot b/.scripts/cast_screenshot index ef0e83e..8514fc4 100755 --- a/.scripts/cast_screenshot +++ b/.scripts/cast_screenshot @@ -1,3 +1,6 @@ #!/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