initial commit

This commit is contained in:
Jeena Paradies 2009-12-21 22:15:50 +01:00
commit db2b871465
6 changed files with 203 additions and 0 deletions

14
screenshot.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
filename=$1
if [ -z $1 ]; then filename="latest"; fi
screencapture -i "/tmp/latest-screenshot.png"
if [ -r /tmp/latest-screenshot.png ]
then
scp /tmp/latest-screenshot.png me@example.com:~/htdocs/s/$filename.png
rm /tmp/latest-screenshot.png
echo "http://example.com/s/$filename.png" | pbcopy
growl -nosticky "Screenshot ready"
fi