This script captures a screenshot of the active window, uploads it to Imgur, copies the URL to the clipboard, and logs the upload history in a CSV file.
- Captures the active window screenshot
- Uploads the screenshot to Imgur
- Copies the Imgur URL to the clipboard
- Saves upload history in a
uploads.csvfile - Provides desktop notifications
Ensure you have the following dependencies installed:
sudo apt install maim xdotool libnotify-bin
pip install imgurpython pyperclip- Clone this repository or copy the script.
- Set up your
ImgurClientcredentials in the script. ReplaceABC123with your own Imgur API key.
Run the script using:
python screenshot_uploader.py- The screenshot is saved temporarily in
~/imgur/imgur.png. - The uploaded image link is copied to the clipboard.
- A record of uploads is stored in
~/imgur/history/uploads.csv.
The script provides desktop notifications when:
- A screenshot is taken
- The upload is successful or fails
Made with ❤️ for easy screenshot sharing!
📌 Tip: You can set a keyboard shortcut to run this script for faster screenshots!