Grab images from a Wayland compositor. Works well with slurp.
It currently works on Sway 1.0 alpha.
Install dependencies:
- meson
- wayland
- cairo
Then run:
meson build
ninja -C build
build/grim
grim screenshot.png # Screenshoot all outputs
grim -o DP-1 screenshot.png # Screenshoot a specific output
grim -g "10,20 300x400" screenshot.png # Screenshoot a region
slurp | grim -g - screenshot.png # Select a region and screenshoot it
grim $(xdg-user-dir PICTURES)/$(date +'%Y-%m-%d-%H%M%S_grim.png') # Use a timestamped filename
Either send GitHub pull requests or send patches on the mailing list.
MIT