An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.com/jcarizza/drosh.svg?branch=master)](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

![Example](https://www.dropbox.com/s/2vz4xuksyoaqu4a/screencast.gif?dl=0&raw=true)

# 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