bin bash FNAME echo date md5sum awk print png URL http sevenov info st

1
2
3
4
5
6
7
8
9
#!/bin/bash
FNAME="$(echo $(date) | md5sum | awk '{ print $1}').png"
URL="http://sevenov.info/static/uploads/$FNAME"
import -window root ~/srv/www/sevenov.info/www/static/uploads/$FNAME
echo -n $URL | xclip -selection c.
DISPLAY=:0.0 notify-send --expire-time=3000 "uploaded"