Skip to content

Instantly share code, notes, and snippets.

@exception
Created January 24, 2016 16:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save exception/7be54c01bb4ff9bc9ebe to your computer and use it in GitHub Desktop.
Save exception/7be54c01bb4ff9bc9ebe 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 --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