CLI util for uploading screenshots to FTP or Imgur.
Copy uploadlatest to /usr/bin/uploadlatest
# cp uploadlatest /usr/bin/uploadlatest
Debian/Ubuntu & Derivatives:
# apt-get install jq curl
Arch:
# pacman -S jq curl
If you are on Xorg, you will need the xclip package:
Debian/Ubuntu & Derivatives:
# apt-get install xclip
Arch:
# pacman -S xclip
Copy uploadlatest.conf.default to ~/.config/uploadlatest.conf
$ cp uploadlatest.conf.default ~/.config/uploadlatest.conf
Configure this file using your favourite editor.
Imgur needs a client ID. You can set this up at https://api.imgur.com/oauth2/addclient
Set authorization type to anonymous usage without user authorization
Set callback URL to imgur.com
Paste the client ID in your config file.
After configuration, you can simply use uploadlatest to take the latest screenshot from your screenshots directory.
Usage: uploadlatest [options]
Options:
-s, --service <service> Specify the service (ftp or imgur)
-h, --help Display this help message