Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshfng/screenshot-uploader
Go program to watch for screenshots and upload to s3
https://github.com/joshfng/screenshot-uploader
Last synced: 2 days ago
JSON representation
Go program to watch for screenshots and upload to s3
- Host: GitHub
- URL: https://github.com/joshfng/screenshot-uploader
- Owner: joshfng
- License: mit
- Created: 2023-11-11T14:01:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-11T14:26:40.000Z (over 1 year ago)
- Last Synced: 2024-06-19T13:35:06.039Z (8 months ago)
- Language: Go
- Size: 6.36 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Screenshot Uploader
A simple go program for MacOS that watches for screenshots or screen recordings and uploads them to s3. A random, short object key is generated for the image and the s3 url is automatically copied to your clipboard, along with a native notification when the upload completes
![Demo](demo.gif)
## Setup
This program assumes you have an aws config file. Next create a file in your home directory called .screenshot-uploader:
```.env
AWS_REGION=us-east-1
AWS_PROFILE=default
AWS_CONFIG_FILE=/full/path/to/.aws/config
S3_BUCKET=i.mydomain.com# leave blank to use default s3 url, only set if you have a cname record
S3_HOST=http://i.mydomain.com# any new .png or .mov added here will be uploaded
SCREENSHOT_LOCATION=/Users/j/Desktop
```Download a release and place it somewhere in your path, then run `screenshot-uploader`. Any new pngs or movs created in your watch directory will be uploaded.
If you want the program to always run, download `com.screenshot.uploader.plist`, edit the path to the binary, and run `launchctl load com.screenshot.uploader.plist`.
## TODO
- Menu bar item?