Grim

Grab images from a Wayland compositor
Alternatives To Grim
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Sway12,092
3 days ago814mitC
i3-compatible Wayland compositor
Hyprland6,823
13 hours ago205bsd-3-clauseC++
Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
Waybar3,341
3 days ago406mitC++
Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
Wayfire1,729
10 days ago316mitC++
A modular and extensible wayland compositor
Dwl1,478
6 days ago32otherC
dwm for Wayland
Awesome Wayland1,143
5 months ago5cc0-1.0
A curated list of Wayland code and resources.
Smithay1,099
20 hours ago4July 25, 2021110mitRust
A smithy for rusty wayland compositors
Papyros Shell975
7 years ago77gpl-3.0C++
:shell: The desktop shell for Papyros, built using QtQuick and QtCompositor as a compositor for Wayland.
Grim757
a year ago10mitC
Grab images from a Wayland compositor
Cage700
2 months agon,ullmitC
A Wayland kiosk
Alternatives To Grim
Select To Compare


Alternative Project Comparisons
Readme

grim

⚠️ Heads up! This project has moved to SourceHut.

Grab images from a Wayland compositor. Works great with slurp and with sway.

Example usage

Screenshoot all outputs:

grim

Screenshoot a specific output:

grim -o DP-1

Screenshoot a region:

grim -g "10,20 300x400"

Select a region and screenshoot it:

grim -g "$(slurp)"

Use a custom filename:

grim $(xdg-user-dir PICTURES)/$(date +'%s_grim.png')

Screenshoot and copy to clipboard:

grim - | wl-copy

Grab a screenshot from the focused monitor under Sway, using swaymsg and jq:

grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name')

Grab a screenshot from the focused window under Sway, using swaymsg and jq:

grim -g "$(swaymsg -t get_tree | jq -j '.. | select(.type?) | select(.focused).rect | "\(.x),\(.y) \(.width)x\(.height)"')"

Pick a color, using ImageMagick:

grim -g "$(slurp -p)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:-

Building from source

Install dependencies:

  • meson
  • wayland
  • pixman
  • libpng
  • libjpeg (optional)

Then run:

meson build
ninja -C build

To run directly, use build/grim, or if you would like to do a system installation (in /usr/local by default), run ninja -C build install.

Contributing

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

Join the IRC channel: #emersion on Libera Chat.

License

MIT

Popular Compositor Projects
Popular Wayland Projects
Popular Graphics Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C
Cli
Screenshot
Wayland
Compositor
Wayland Compositor