bin/scr (view raw)
1 2 3 4 5 6 7
#!/usr/bin/env bash scr_path=~/pics/scrots n=6; output=$(tr -cd '[:alnum:]' < /dev/urandom | head -c$n) import -window root "$scr_path/$output.png" notify-send 'screenshot taken!' xclip -selection clipboard -t image/png -i "$scr_path/$output.png"