shotgun is a lightweight command-line screenshot utility for X11. Its developer created it as a more minimal alternative to maim, focusing on capturing an image quickly rather than incorporating a built-in graphical selection interface.
The program is suited to window-manager key bindings and shell scripts. It can capture the screen or use geometry and window information obtained from a separate selection tool. Output can be written to a file or passed directly to another application for clipboard handling or image conversion.
This is free and open source software.
Key Features
- Captures screenshots from an X11 display without requiring a separate graphical screenshot interface.
- Exports images as PNG or uncompressed PAM, with PAM useful when a pipeline needs to avoid PNG encoding overhead.
- Writes screenshots to a named file or directly to standard output for processing by another program.
- Accepts a window ID to capture a particular application window.
- Accepts explicit width, height, and screen coordinates for capturing a defined region.
- Includes an option to capture the current X11 screen.
- Masks off-screen areas on multi-monitor desktops.
- Uses timestamp-based filenames when no output path is supplied.
- Works with standalone region selectors such as slop or hacksaw, which can supply the required window ID or geometry.
- The developer’s published benchmark reported faster PNG capture than maim in the tested configuration; performance will depend on the system and image format.
Website: github.com/neXromancers/shotgun
Support:
Developer: novenary
License: Mozilla Public License v2.0

shotgun is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| CLI Screen Capture Tools | |
|---|---|
| maim | Make Image aims to improve on scrot |
| scrot | SCReenshOT is a simple command line screen capture utility |
| slop | Queries for a selection from the user and prints the region to stdout |
| wayshot | Screenshot tool for wayland compositors |
| termframe | Terminal output SVG screenshot tool |
| grim | Utility to take screenshots of Wayland desktops |
| shotman | Uncompromising screenshot tool for Wayland compositors |
| shotgun | Minimal screenshot utility |
| ImageMagick | Create, edit, and compose bitmap images |
| HyprCap | Capture screenshots and screen recordings on Hyprland |
| grimblast | Capture windows, selected areas, and screens on Hyprland |
| lqth | Simple but fast screenshot utility inspired by xscreenshot |
| grimshot | Capture windows, selected areas, and screens under Sway |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.