Skip to content

Instantly share code, notes, and snippets.

@brycied00d
Last active October 10, 2015 19:48
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 brycied00d/3741684 to your computer and use it in GitHub Desktop.
Save brycied00d/3741684 to your computer and use it in GitHub Desktop.
Linux Printscreen+Dropbox Script
#!/bin/bash
capturefile="$HOME/Dropbox/Public/screenshot_`date +%F_%H-%M-%S`.png"
#echo $capturefile
scrot -s "$capturefile"
URL=$(dropbox puburl "$capturefile")
echo -n "$URL" | xclip -selection p
echo -n "$URL" | xclip -selection c
notify-send "Screenshot Uploaded" "Screenshot uploaded as $URL"
echo "$URL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment