OwnCloud Screenshot Sharing (based on rage311's work)
Features:
- Taking a screenshot from a selected window or area
- Automatically uploading this screenshot to Owncloud/Nextcloud
- Creating a shared link in Owncloud/Nextcloud
- Shorting the link via Yourls
- Copying the link in your clipboard
Shared:
- curl
- grep
Linux:
- maim
- slop
- notify-send
- xclip
- lynx
- perl-xml-twig
Get ocss.sh by either cloning this repo or downloading the zip. Edit the CONFIG portion of ocss.sh and fill in your details/preferences. By default, it's setup to save screenshots locally to $HOME/Pictures/ocss (config setting: file_dir), so either change that to a directory that exists or create that directory. Also by default, it will upload the screenshots to a folder named "ocss" in your Owncloud root (config setting: oc_ocss_dir_name)... make sure that exists. The default open command that opens a browser to display your new upload is chromium (config setting: open_command).
Run it with the "check" argument to check if all required dependencies exist.
$ ./ocss.sh check