Slurp

Select a region in a Wayland compositor
Alternatives To Slurp
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Sway12,120
3 days ago818mitC
i3-compatible Wayland compositor
Hyprland7,015
a day ago215bsd-3-clauseC++
Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
Waybar3,357
4 days ago408mitC++
Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
Wayfire1,747
19 hours ago323mitC++
A modular and extensible wayland compositor
Dwl1,491
7 days ago28otherC
dwm for Wayland
Awesome Wayland1,143
6 months ago5cc0-1.0
A curated list of Wayland code and resources.
Smithay1,114
16 hours ago4July 25, 2021111mitRust
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 Slurp
Select To Compare


Alternative Project Comparisons
Readme

slurp

Select a region in a Wayland compositor and print it to the standard output. Works well with grim.

Join the IRC channel: #emersion on Libera Chat.

Building

Install dependencies:

  • meson
  • wayland
  • cairo
  • libxkbcommon
  • scdoc (optional: man pages)

Then run:

meson build
ninja -C build
build/slurp

Example usage

Select a region and print it to stdout:

slurp

Select a single point instead of a region:

slurp -p

Select an output and print its name:

slurp -o -f "%o"

Select a window under Sway, using swaymsg and jq:

swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp

Contributing

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

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
Command Line
Screenshot
Wayland
Compositor
Wayland Compositor