Friday, February 17, 2012

Save a screenshot to Dropbox with a keyboard shortcut

3 comments:

  1. Nice script. I use Shutter with a keyboard shortcut myself.

    ReplyDelete
  2. I keep forgetting that there is a whole new crowd of linux users that aren't hackers of any kind. My /usr/scripts folder is full of little 2-minute gems like this that seemed too trivial to share. I guess it finally is starting to (slowly) go mainstream. Good times.

    ReplyDelete
  3. simplified:

    #!/bin/bash
    sleep .2
    filename=~/Dropbox/Public/temp/$(date +%Y%m%d%S).png
    scrot -s $filename
    dropbox puburl $filename | xclip -selection c

    ReplyDelete