Small Bash helper to take an area screenshot, upload it to the fedded.net API endpoint, copy the resulting URL to the clipboard, and show a desktop notification.
- Runs
gnome-screenshot -aso you can select a region. - Uploads the captured PNG to an HTTP API (
multipart/form-data). - Parses the returned JSON for
.url. - Copies the URL to the clipboard (
wl-copy). - Shows a notification (
notify-send).
bashgnome-screenshotcurljqwl-copy(Wayland clipboard; package is usuallywl-clipboard)notify-send(usually fromlibnotify)
If you’re not on GNOME/Wayland you may need to swap gnome-screenshot and/or clipboard tooling.
Make the script executable:
chmod +x ./ss.shThis script is intended to be used with fedded.net. Configure via environment variable:
API_KEY(default:fedded-net-api-key)
Example:
API_KEY="your-real-key" \
./ss.shRun:
./ss.shSelect an area. On success, the resulting URL is:
- copied to your clipboard
- shown in a notification
Bind ss.sh in your desktop environment’s custom shortcuts (e.g., GNOME Settings → Keyboard → Custom Shortcuts) to run it on a hotkey.
- “Missing dependency: …”: install the named tool and retry.
- Upload failed / notification shows raw response: the API likely returned an error; re-check
API_URL,API_KEY, and server status. - Clipboard not working: ensure
wl-copyexists and you’re on Wayland, or modify the script to usexclip/xselfor X11.