libwayshot

Crates.iolibwayshot
lib.rslibwayshot
version0.3.0
sourcesrc
created_at2023-07-03 07:09:06.499878
updated_at2023-10-08 05:26:01.617716
descriptionScreenshot crate for wlroots based compositors implementing the zwlr_screencopy_v1 protocol.
homepage
repositoryhttps://git.sr.ht/~shinyzenith/wayshot
max_upload_size
id906757
size37,953
Aakash Sen Sharma (Shinyzenith)

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().unwrap();
let image_buffer = wayshot_connection.screenshot_all().unwrap();
Commit count: 0

cargo fmt