Linux screenshot upload script

I thought I’d share a script I wrote to upload screenshots from Linux. It’s very similar to another script, which I did not know about before writing my own. I decided to share mine anyway as it does things slightly differently and is compatible with multiple screenshot tools.

When invoked, it screenshots the active window and uploads it to NightLight, then opens your browser to fill in the match details. If there are any errors, a dialog box will be displayed with information.

Documentation is provided in the script itself, but basically you need to add a global shortcut in your desktop environment that invokes the script in reaction to combination of keys, making sure to pass the script your NightLight API key.