libwayshot 0.3.0

Screenshot crate for wlroots based compositors implementing the zwlr_screencopy_v1 protocol.
Documentation

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();