mirror of
https://github.com/emersion/grim.git
synced 2026-10-22 19:11:38 +00:00
Grab images from a Wayland compositor
https://wayland.emersion.fr/grim
- C 88.4%
- Meson 8.6%
- Shell 3%
|
History
|
||
|---|---|---|
| include | ||
| protocol | ||
| .build.yml | ||
| .editorconfig | ||
| .gitignore | ||
| box.c | ||
| buffer.c | ||
| cairo_jpg.c | ||
| grim.1.scd | ||
| LICENSE | ||
| main.c | ||
| meson.build | ||
| output-layout.c | ||
| README.md | ||
| render.c | ||
grim
Grab images from a Wayland compositor. Works great with slurp and sway >= 1.0.
Building
Install dependencies:
- meson
- wayland
- cairo
Then run:
meson build
ninja -C build
build/grim
Usage
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
Installation
Arch Linux
pacman -S grim
Contributing
Either send GitHub pull requests or send patches on the mailing list.
License
MIT