#screenshot #wlroots #wayland #wayland-compositor #wayshot

libwayshot

Screenshot crate for wlroots based compositors implementing the zwlr_screencopy_v1 protocol

3 releases (breaking)

0.3.0 Oct 8, 2023
0.2.0 Aug 2, 2023
0.1.2 Jul 3, 2023

#1289 in GUI

Download history 264/week @ 2024-07-20 368/week @ 2024-07-27 537/week @ 2024-08-03 390/week @ 2024-08-10 268/week @ 2024-08-17 273/week @ 2024-08-24 234/week @ 2024-08-31 278/week @ 2024-09-07 189/week @ 2024-09-14 328/week @ 2024-09-21 303/week @ 2024-09-28 426/week @ 2024-10-05 289/week @ 2024-10-12 333/week @ 2024-10-19 368/week @ 2024-10-26 437/week @ 2024-11-02

1,453 downloads per month
Used in 6 crates (2 directly)

BSD-2-Clause

38KB
886 lines

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

lib.rs:

libwayshot is a convenient wrapper over the wlroots screenshot protocol that provides a simple API to take screenshots with.

To get started, look at WayshotConnection.

Dependencies

~7–16MB
~232K SLoC