Skip to content

Instantly share code, notes, and snippets.

@Saicheg
Created December 7, 2012 07:46
Show Gist options
  • Select an option

  • Save Saicheg/4231551 to your computer and use it in GitHub Desktop.

Select an option

Save Saicheg/4231551 to your computer and use it in GitHub Desktop.

Revisions

  1. Saicheg revised this gist Dec 7, 2012. 1 changed file with 10 additions and 3 deletions.
    13 changes: 10 additions & 3 deletions screenshare
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,18 @@
    #!/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 $IMAGEPATH
    dropbox puburl $IMAGEPATH | xclip
    scrot $1 $IMAGEPATH
    dropbox puburl $IMAGEPATH | xclip
  2. Saicheg created this gist Dec 7, 2012.
    11 changes: 11 additions & 0 deletions screenshare
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/bash

    # Requirements:
    # Dropbox
    # scrot
    # xclip

    TSTAMP=`date +%s`
    IMAGEPATH=~/Dropbox/Public/share/Screenshot-$TSTAMP.png
    scrot $IMAGEPATH
    dropbox puburl $IMAGEPATH | xclip