| Crates.io | libwayshot |
| lib.rs | libwayshot |
| version | 0.3.0 |
| created_at | 2023-07-03 07:09:06.499878+00 |
| updated_at | 2023-10-08 05:26:01.617716+00 |
| description | Screenshot crate for wlroots based compositors implementing the zwlr_screencopy_v1 protocol. |
| homepage | |
| repository | https://git.sr.ht/~shinyzenith/wayshot |
| max_upload_size | |
| id | 906757 |
| size | 37,953 |
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().unwrap();
let image_buffer = wayshot_connection.screenshot_all().unwrap();