Skip to content

Instantly share code, notes, and snippets.

@gumayunov
Created February 16, 2010 06:32
Show Gist options
  • Save gumayunov/305352 to your computer and use it in GitHub Desktop.
Save gumayunov/305352 to your computer and use it in GitHub Desktop.
#!/bin/sh
# install scrot pwgen xsel
# your dropbox account number goes here
DROPBOX=1788721
FILENAME=$HOME'/Dropbox/Public/screenshots/%Y%m%d-%H%M%S-screenshot-'`pwgen -1`'.png'
scrot -s $FILENAME -e 'curl "http://is.gd/api.php?longurl=http://dl.dropbox.com/u/'$DROPBOX'/screenshots/"$n' 2>/dev/null | xsel -i -b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment