Skip to content

RyanDwyer/grim

 
 

Repository files navigation

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

About

Grab images from a Wayland compositor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 87.1%
  • Meson 8.3%
  • SuperCollider 4.6%