Skip to content

Instantly share code, notes, and snippets.

@ovr
Forked from Saicheg/screenshare
Last active August 29, 2015 14:26
Show Gist options
  • Save ovr/cad02a72a7b40c53af82 to your computer and use it in GitHub Desktop.
Save ovr/cad02a72a7b40c53af82 to your computer and use it in GitHub Desktop.
Share screenshots on Ubuntu using Dropbox
#!/bin/bash
################
# Description:
# This script will take screenshot of your desktop
# or only active window ( running with -u param ),
# copy it to /Dropbox/Public/share/ with uniq name
# and save path to clipboard
#################
# Requirements:
# Dropbox
# scrot
# xclip
#################
TSTAMP=`date +%s`
IMAGEPATH=~/Dropbox/Public/share/Screenshot-$TSTAMP.png
scrot $1 $IMAGEPATH
dropbox puburl $IMAGEPATH | xclip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment