Skip to content

Instantly share code, notes, and snippets.

@igorcoding
Created June 7, 2015 17:50
Show Gist options
  • Save igorcoding/24fbb3048dbe23d81ec6 to your computer and use it in GitHub Desktop.
Save igorcoding/24fbb3048dbe23d81ec6 to your computer and use it in GitHub Desktop.
Make screenshot and upload it to Dropbox
#! /bin/sh
TIMESTAMP=`date +%Y-%m-%d-%H-%M-%S`
IMAGEPATH=$HOME/Dropbox/Public/Screenshots/Screenshot_$TIMESTAMP.png
gnome-screenshot $1 -f $IMAGEPATH
dropbox puburl $IMAGEPATH | xclip -selection clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment