https://github.com/jcarizza/drosh
📷 Autogenerate Dropbox shared links for your screenshots
https://github.com/jcarizza/drosh
dropbox link productivity python screenshot share shutter upload
Last synced: 10 months ago
JSON representation
📷 Autogenerate Dropbox shared links for your screenshots
- Host: GitHub
- URL: https://github.com/jcarizza/drosh
- Owner: jcarizza
- License: mit
- Created: 2017-07-15T15:28:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:14:11.000Z (over 3 years ago)
- Last Synced: 2025-04-01T15:22:58.063Z (about 1 year ago)
- Topics: dropbox, link, productivity, python, screenshot, share, shutter, upload
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/jcarizza/drosh)
# Drosh
Use your favourite screenshot tool and let Drosh script upload it to Dropbox and create a shared link

# Requirements
- inotify
- dropbox
- Something to daemonize the script
# Setup
## Create Dropbox App
Create a Dropbox App in https://www.dropbox.com/developers/apps with *full access* then in the OAuth2 section create your private access token and configure the script.
## Quick start
```
pip install -r requirements.txt
export DROSH_DROPBOX_TOKEN=''
export DROSH_DROPBOX_FOLDER=''
export DROSH_SCREENSHOT_FOLDER=''
(env) python drosh.py
```
## Setup with supervisor
### Environment variables
```
DROSH_DROPBOX_TOKEN - OAuth2 token generated in the Dropbox App
DROSH_DROPBOX_FOLDER - Web site Dropbox folder
DROSH_SCREENSHOT_FOLDER - Full path to your Dropbox folder where you save screenshots
USER - Your username
HOME - Your home path
LOGNAME - Your username
DISPLAY - Your X Server screen, ":0.0" by default. https://askubuntu.com/questions/432255/what-is-display-environment-variable
```
### Use in console for upload one file
```
python drosh.py --upload screenshot.png
Share this link!
https://www.dropbox.com/s/8uzja12dawdadfpdci91fi/screenshot.png?dl=0
```
### Supervisor script to run on watch mode
```
[program:drosh]
command=/bin/python /drosh.py --watch
user=
autostart=true
autorestart=true
stderr_logfile=/var/log/drosh-stderr.log
stdout_logfile=/var/log/drosh-std.log
environment=DROSH_DROPBOX_TOKEN='',DROSH_DROPBOX_FOLDER='',DROSH_SCREENSHOT_FOLDER='',USER=,HOME=,LOGNAME=,DISPLAY=":0.0"
```
### Contributors
- [zamoroka](https://github.com/zamoroka)
### Troubleshooting
#### The notification does not appear on my desktop
There is some problem with the env var `DISPLAY` or check the permision of your supervisorfile. You can see the discussion on this thread https://github.com/jcarizza/drosh/issues/3
#### Pyperclip could not find a copy/paste mechanism for your system
Maybe you need some extra requirements, Pyperclip uses gtk or PyQt4 to access the paper clim. https://github.com/asweigart/pyperclip/blob/master/docs/introduction.rst