Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 832 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 832 Bytes

grim

Grab images from a Wayland compositor. Works well with slurp.

It currently works on Sway 1.0 alpha.

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

Contributing

Either send GitHub pull requests or send patches on the mailing list.

License

MIT