-
-
Save wellic/8dddcfb70e31a706454d6794d5a40668 to your computer and use it in GitHub Desktop.
Create screenshot to dropbox folder and copy it's dropbox link to clipboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| DISPLAY=:0.0 | |
| DROPBOXPYPATH=/usr/bin/dropbox | |
| XCLIP=/usr/bin/xclip | |
| FILENAME=`date +shot-%Y-%m-%d-%H%M%S.png` | |
| FULLPATH=$HOME/Dropbox/Public/Screenshots/$FILENAME | |
| import -window root $FULLPATH | |
| $DROPBOXPYPATH puburl $FULLPATH | $XCLIP -selection clipboard | |
| echo $FILENAME | aosd_cat -p 0 -x 50 -y 50 -n "Droid Sans Bold 20" -R green -S white -e 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment