A solution for taking area screenshots on Fedora GNOME (Wayland) that both saves the file AND copies it to clipboard with a single keyboard shortcut.
gnome-screenshot -cflag is broken on Waylandgrim+slurpdon't work with GNOME's compositor (zwlr_layer_shell_v1 not supported)
sudo dnf install -y wl-clipboard gnome-screenshotCreate the script file:
mkdir -p ~/.local/bin
nano ~/.local/bin/screenshot-area.shAdd this content:
#!/bin/bash
FILE=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%M-%S).png
gnome-screenshot -af "$FILE" && wl-copy < "$FILE"Make it executable:
chmod +x ~/.local/bin/screenshot-area.sh- Open Settings → Keyboard → View and Customize Shortcuts
- Scroll down and click "Add Custom Shortcut"
- Fill in:
- Name:
Screenshot Area (Save + Clipboard) - Command:
/home/YOUR_USERNAME/.local/bin/screenshot-area.sh(replace YOUR_USERNAME) - Shortcut: Press your desired key combo (e.g.,
Shift + Print)
- Name:
Press your shortcut key, select the area, and the screenshot will be:
- ✅ Saved to
~/Pictures/Screenshots/with timestamp - ✅ Copied to clipboard ready to paste
gnome-screenshot -af "$FILE"- Takes area screenshot and saves to file without dialogwl-copy < "$FILE"- Copies the saved file to Wayland clipboard&&- Only copies if screenshot succeeds
- Fedora 43
- GNOME 49
- Wayland
Thanks