My workflow: press global hotkey -> screenshot or screen record -> after finishing (file uploaded via API -> store file's link in clipboard -> notification).
Thank you for the warning. You are correct. It's prune to command injection. I will validate the URL before executing it. This shoud suffice until archivebox's rest API is available in stable.
EDIT: Added script. Note that the script doesn't include archiving to
archivebox, since its API isn't available in stable verison yet. You can add a
function depending on your setup. Personally, I am depending on Caddy and
docker, so I am using caddy module [1] to execute commands with this in my Caddyfile:
https://github.com/sergix44/XBackBone
My workflow: press global hotkey -> screenshot or screen record -> after finishing (file uploaded via API -> store file's link in clipboard -> notification).