snappers-0.1.0 is not a library.
snappers
snappers is a standalone Wayland screenshot tool that aims to reproduce niri's built-in screenshot UI as a normal client application.
It currently provides:
snappers areafor the interactive region pickersnappers screenfor whole-output capture- clipboard copy plus optional file saving
- output-aware
screencapture that defaults to the monitor under the pointer
Requirements
snappers targets compositors that expose the wlroots-style screenshot stack:
wlr-layer-shell- screencopy support exposed through
libwayshot - a working Wayland clipboard path
Build
Install
From source:
Release binary:
Commands
Notes:
areaopens the niri-style selection overlay.screencaptures the output under the pointer by default.screen --output <name>bypasses auto-selection and captures the named output.- captures are copied to the clipboard; saving to disk is enabled by default and can be disabled with
--write-to-disk=false.
Configuration
The default config path is:
~/.config/snappers/config.toml
The default screenshot path pattern is:
~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png
Example config:
= "~/Pictures/Screenshots/Snappers %Y-%m-%d %H-%M-%S.png"
[]
= ["Return", "space"]
= ["Ctrl+C"]
= ["Escape"]
= ["p"]
If screen cannot determine the output under the pointer, it fails clearly and asks for --output.
Development
Useful checks:
Release notes live in CHANGELOG.md.