Make sure you have a working and configured s3cmd and you have notify-send installed
Update upload_screenshot
to point to your s3 bucket and path
you may need to update DISPLAY
and DBUS_SESSION_BUS_ADDRESS
(from a working terminal in your X session you can find these by doing echo $DISPLAY && echo $DBUS_SESSION_BUS_ADDRESS
)
make sure upload_screenshot
is in your (and probably root's) PATH (I put mine in /usr/local/bin
) -- also make sure it's executable chmod a+x upload_screenshot
Set up the directory to watch in your incrontab (in my example /home/chadkouse/screenshots ) Any file you put into this directory will get uploaded to s3 and it's url copied to the clipboard.
I use https://github.com/lupoDharkael/flameshot for screenshots and https://github.com/phw/peek for screen recording
the .desktop entry allows content to be sent directly to s3 without first saving in your output directory (flameshot has an option for this, peek does not)