Skip to content

Instantly share code, notes, and snippets.

@leafo
Created October 19, 2014 17:09
Show Gist options
  • Save leafo/b0f418dfe97a46e4913d to your computer and use it in GitHub Desktop.
Save leafo/b0f418dfe97a46e4913d to your computer and use it in GitHub Desktop.
#!/bin/bash
scrot '%Y-%m-%d_%H-%M-%S.png' -s -e 'pngquant --ext .png -f $f;scp $f [email protected]:www/shotsnb;echo -n "http://leafo.net/shotsnb/$f" | xclip; rm $f' && notify-send -u normal -t 1000 'Screenshot Ready'
#!/bin/bash
eval $(slop -c=0.3,0.3,0.8,1)
if [ "${Cancel}" = "true" ]; then
exit 0
fi
fname="$(date +%F_%H-%M-%S).png"
maim -g=$G "$fname"
pngquant --ext .png -f "$fname"
scp "$fname" [email protected]:www/shotsnb
echo -n "http://leafo.net/shotsnb/$fname" | xclip
rm "$fname"
notify-send -u normal -t 1000 'Screenshot Ready'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment