Skip to content

Instantly share code, notes, and snippets.

@WesJD
Forked from exception/instructions.md
Last active March 14, 2017 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WesJD/5219c173427f6ace58cd17c5c8ff1007 to your computer and use it in GitHub Desktop.
Save WesJD/5219c173427f6ace58cd17c5c8ff1007 to your computer and use it in GitHub Desktop.
Ubuntu screnshoting for Pxl.lt

Instructions

After creating the screenshot.sh file you shoud:

  • Assign a Key to the screenshot.sh file
#!/bin/sh
uploadImage () {
curl -s -F "file=@$1" -F "upload-key=<your key here>" https://pxl.lt/screenshot/upload.php
}
gnome-screenshot -a -B --file=sc.png
uploadImage "sc.png" | xclip -selection c
rm "sc.png"
notify-send "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment