libwayshot-xcap

Crates.iolibwayshot-xcap
lib.rslibwayshot-xcap
version0.3.2
created_at2025-05-11 02:00:03.687933+00
updated_at2025-05-11 02:00:03.687933+00
descriptionScreenshot crate for wlroots based compositors implementing the zwlr_screencopy_v1 protocol.
homepage
repositoryhttps://github.com/nashaofu/wayshot
max_upload_size
id1669014
size103,273
nashaofu (nashaofu)

documentation

README

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()?;
Commit count: 210

cargo fmt