Skip to content

Instantly share code, notes, and snippets.

@Hounddog
Created September 13, 2012 13:41
Show Gist options
  • Save Hounddog/3714367 to your computer and use it in GitHub Desktop.
Save Hounddog/3714367 to your computer and use it in GitHub Desktop.
shoot screenshot imgurl
#!/bin/bash
function uploadImage {
curl -F "image=@$1" -F "key=b64253965d1905005c02f8c8e591f958" http://api.imgur.com/2/upload.xml | grep -E -o "<original>(.)*</original>" | grep -E -o "http://i.imgur.com/[^<]*"
}
http_proxy=
scrot -s "shot.png"
uploadImage "shot.png" | xclip -selection c
rm "shot.png"
#notify-send "Done"
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment