Created
December 2, 2014 10:25
-
-
Save ckruse/143d1e4344b59b26748f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILENAME="${1:-latest.png}" | |
LANG=C | |
TMPFILE=/tmp/$FILENAME | |
if [ "$2" = "full" ]; then | |
scrot $TMPFILE | |
else | |
scrot -s $TMPFILE | |
fi | |
convert $TMPFILE \( +clone -background black -shadow 60x5+3+3 \) +swap -background white -layers merge +repage $TMPFILE | |
scp -q $TMPFILE jugulator.defunced.de:/home/ckruse/www/defunced.de/www/data/pics/screenshots/$FILENAME | |
rm -f $TMPFILE | |
echo -n http://www.defunced.de/pics/screenshots/$FILENAME?html | xsel -b | |
xdg-open http://www.defunced.de/pics/screenshots/$FILENAME?html | |
# eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment