Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kylef/ucp
A simple and universal command line tool for capturing screenshots and uploading to the web.
https://github.com/kylef/ucp
Last synced: 10 days ago
JSON representation
A simple and universal command line tool for capturing screenshots and uploading to the web.
- Host: GitHub
- URL: https://github.com/kylef/ucp
- Owner: kylef
- License: bsd-2-clause
- Created: 2011-09-12T10:46:01.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-12-17T00:47:53.000Z (about 9 years ago)
- Last Synced: 2024-10-15T12:45:23.424Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# URL Copy
A simple and universal command line tool for capturing screenshots and
uploading to the web.It's built in bash and highly extensible and customisable. Allowing you to
easily add support for custom screencapture apps and services.## Usage
UCP can be used by setting configuration inside `~/.ucp`, see below for more
information on available providers.```bash
CAPTURE_PROVIDER=screencapture_select
CLIPBOARD_PROVDER=pbcopy
UPLOAD_PROVIDER=sftpSFTP_HOST=fuller.li
SFTP_DIR=/srv/www/snapshots
BASEURL="https://snapshots.fuller.li/"
```Once configured, you can run `ucp` to capture and upload files.
### Capture
Capture and upload a screenshot to your configured service.
```shell
$ ucp capture
https://screenshots.fuller.li/Rniol.png
```### Upload
Upload a file to your configured service.
```shell
$ ucp upload test.tar.xz
https://screenshots.fuller.li/test.tar.xz
```### Capture Provides
#### `screencapture`
Mac OS X Full Screen Capture
#### `screencapture_select`
#### `scrot`
Use scrot to take a full screen capture.
#### `scrot_select`
Use scrot to take a selective capture
### Clipboard Provider
#### `empty`
This provider disables copying the URL to the clipboard.
#### `pbcopy`
Mac OS X System Clipboard.
#### `xsel`
An X server command for managing the clipboard.
### Upload Provider
#### `sftp`
Uploads to SFTP. This provider requires additional configuration:
```bash
SFTP_USER=kyle # Defaults to current username
SFTP_HOST=fuller.li
SFTP_PORT=22 # Defaults to 22## Base directory to upload file to, must end in / (unless empty)
SFTP_DIR=/srv/www/fuller.li/screenshots
```#### `ftp`
Uploads to FTP. This provider requires additional configuration:
```bash
FTP_USER=kyle
FTP_PASSWORD=super-secret
FTP_HOST=fuller.li## Base directory to upload file to, must end in / (unless empty)
FTP_DIR=/srv/www/fuller.li/screenshots
```#### `bacon`
This service is shutdown :(.
#### Custom Upload Providers
A custom upload provider can be created using a bash function in your config
file. For example:```bash
UPLOAD_PROVIDER=custom_providercustom_provider() {
local file=$1
# Upload file...
URL="https://foo.com/$file"
}
```