#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

#1236 in GUI

Download history 469/week @ 2024-06-10 410/week @ 2024-06-17 426/week @ 2024-06-24 248/week @ 2024-07-01 321/week @ 2024-07-08 304/week @ 2024-07-15 259/week @ 2024-07-22 420/week @ 2024-07-29 488/week @ 2024-08-05 390/week @ 2024-08-12 254/week @ 2024-08-19 300/week @ 2024-08-26 221/week @ 2024-09-02 279/week @ 2024-09-09 186/week @ 2024-09-16 345/week @ 2024-09-23

1,066 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
~228K SLoC