| Crates.io | libwayshot-xcap |
| lib.rs | libwayshot-xcap |
| version | 0.3.2 |
| created_at | 2025-05-11 02:00:03.687933+00 |
| updated_at | 2025-05-11 02:00:03.687933+00 |
| description | Screenshot crate for wlroots based compositors implementing the zwlr_screencopy_v1 protocol. |
| homepage | |
| repository | https://github.com/nashaofu/wayshot |
| max_upload_size | |
| id | 1669014 |
| size | 103,273 |
A native, blazing-fast 🚀🚀🚀 screenshot crate for wlroots based compositors such as sway and river.
libwayshotlibwayshot is a convenient wrapper over the wlroots screenshot protocol that provides a simple API to take screenshots with.
use libwayshot::WayshotConnection;
let wayshot_connection = WayshotConnection::new()?;
let image_buffer = wayshot_connection.screenshot_all()?;