A screenshot and screen recording tool for the COSMIC desktop environment with annotation capabilities.
demo.mp4
Disclaimer: This project is based on xdg-desktop-portal-cosmic with added features. It implements the same screenshot portal interface. When set up correctly, dbus messages sent by cosmic-screenshot will be handled by SnapPea instead of xdg-desktop-portal-cosmic (only Screenshot Portal messages).
- Interactive screenshot selection
- Screen recording with hardware acceleration (no audio yet)
- Multiple container formats (MP4, WebM, MKV)
- Configurable framerate (24/30/60 fps)
- Hardware encoder selection
- Cursor visibility toggle
- Live annotations while recording
- Video editor
- Trim recorded video
- Save as gif
- Save as WebM
- Annotation tools: arrows, circles, squares, freehand drawing
- Text recognition (OCR)
- QR code detection
- Redaction and pixelation
- Multi-window and multi-output support
- Keyboard shortcuts
- Configurable settings
SnapPea repository hosting is graciously provided by Cloudsmith.
For Ubuntu/Pop!_OS 24.04 (Noble):
# Add the Cloudsmith repository
curl -1sLf 'https://dl.cloudsmith.io/public/cosmetics/snappea/setup.deb.sh' | sudo -E bash
# Install SnapPea
sudo apt install snappeaPackages are built automatically on every release and include the binary and desktop entry.
COPR packages are maintained by @lorduskordus.
Traditional Fedora:
sudo dnf copr enable kordus/cosmic-apps
sudo dnf install snappeaFedora Atomic:
sudo wget \
https://copr.fedorainfracloud.org/coprs/kordus/cosmic-apps/repo/fedora/kordus-cosmic-apps.repo \
-O /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:kordus:cosmic-apps.repo
rpm-ostree install snappeaBuild and install with just:
just && sudo just installThis installs the binary to /usr/bin/snappea and adds a desktop entry to your application menu.
Setting up a keyboard shortcut:
- Open Settings > Keyboard > Keyboard Shortcuts > Custom Shortcuts
- Add a new shortcut:
- Name:
SnapPea(orScreenshot) - Command:
snappea - Shortcut:
Print(or your preferred key)
- Name:
Note
Running snappea multiple times communicates with the existing instance. If you're recording and press the shortcut again, it will stop the recording.
To use SnapPea as the default screenshot portal (replacing the COSMIC screenshot tool when Print Screen is pressed):
- Open SnapPea
- Click the Settings gear icon
- Under the General tab, enable Set as Default
This automatically registers SnapPea as the preferred screenshot portal for your user account and restarts xdg-desktop-portal to apply the change immediately. No root access or manual config editing required.
Important
SnapPea used to install its config to ~/.config/xdg-desktop-portal/portals.conf. This breaks theming in Flatpaks. If you had an older version of SnapPea, make sure portals.conf is deleted.
To get better gif quality install gifski.
To enable text recognition (OCR), install tesseract-ocr:
# Debian/Ubuntu
sudo apt install tesseract-ocr
# Fedora
sudo dnf install tesseract
# Arch
sudo pacman -S tesseractsudo just uninstallThe uninstall command will warn you if ~/.config/xdg-desktop-portal/cosmic-portals.conf still contains SnapPea configuration.
It Snaps Pics and it's snappy!