Skip to content

Instantly share code, notes, and snippets.

@dmitryTsatsarin
Forked from Saicheg/screenshare
Created March 26, 2014 10:31
Show Gist options
  • Save dmitryTsatsarin/9780486 to your computer and use it in GitHub Desktop.
Save dmitryTsatsarin/9780486 to your computer and use it in GitHub Desktop.
#!/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