Skip to content

Instantly share code, notes, and snippets.

@ildarkhasanshin
Forked from Saicheg/screenshare
Created February 4, 2018 15:56
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 ildarkhasanshin/7cdb3596ef807692cbfe3bfbaf71054d to your computer and use it in GitHub Desktop.
Save ildarkhasanshin/7cdb3596ef807692cbfe3bfbaf71054d 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