#screenshot #wayland #wlroots #wayshot

libwayshot-xcap

Screenshot crate for wlroots based compositors implementing the zwlr_screencopy_v1 protocol

1 unstable release

Uses new Rust 2024

new 0.3.2 May 11, 2025

#1095 in GUI


Used in 2 crates (via xcap)

BSD-2-Clause

82KB
1.5K SLoC

libwayshot is a convenient wrapper over the wlroots screenshot protocol that provides a simple API to take screenshots with.

To get started, look at WayshotConnection.


wayshot

A native, blazing-fast 🚀🚀🚀 screenshot crate for wlroots based compositors such as sway and river.

libwayshot

libwayshot is a convenient wrapper over the wlroots screenshot protocol that provides a simple API to take screenshots with.

Example usage

use libwayshot::WayshotConnection;

let wayshot_connection = WayshotConnection::new()?;
let image_buffer = wayshot_connection.screenshot_all()?;

Dependencies

~6–17MB
~232K SLoC