dotfiles/.scripts/cast_screenshot

7 lines
217 B
Bash
Executable File

#!/bin/sh
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