Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oppiliappan/lien
Screenshot / File uploader program
https://github.com/oppiliappan/lien
Last synced: 3 months ago
JSON representation
Screenshot / File uploader program
- Host: GitHub
- URL: https://github.com/oppiliappan/lien
- Owner: oppiliappan
- Created: 2018-01-31T13:29:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-01T16:03:24.000Z (over 6 years ago)
- Last Synced: 2024-06-30T03:58:55.217Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 73.2 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# lien.sh
A simple shell script to take screenshots and upload them, log the links, inform you about the upload status, and copy the link to clipboard.
### Dependencies
[`curl`](https://curl.haxx.se/) - to transfer files to file hosts.
`libnotify` / `libnotify-bin` - to send desktop notifications of upload status.
[`xclip`](https://github.com/astrand/xclip) - to copy URLs to X11 clipboard.
[`slop`](https://github.com/naelstrof/slop) - for sane screenshotting.
[`maim`](https://github.com/naelstrof/maim) - scrot sucks.```
Usage:
lien [options]-h Display this help message and exit.
-f [file] Upload a file to a file host.
Auto uploads a screenshot when paired with the 's' flag
-s [file] Take an interactive screenshot.
-a [file] Take a full screenshot.
-d Wait for seconds before taking a screenshot.
-l Print logs of previous uploads. Logs are stored at $HOME/lien/lien_logs.
-c Clear all logs.Examples:
lien -f xyz.txt # upload a text file
lien -af -d 2 # upload a screenshot of the entire root window
# after a delay of 2 seconds
```Users are encouraged to write basic loops to take care of batch uploads.
```shell
for i in `ls`; do
lien -f "$i"
done
```### TODO
- Improve logging