#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

#928 in GUI

Download history 249/week @ 2023-12-14 687/week @ 2023-12-21 443/week @ 2023-12-28 297/week @ 2024-01-04 781/week @ 2024-01-11 1160/week @ 2024-01-18 627/week @ 2024-01-25 586/week @ 2024-02-01 838/week @ 2024-02-08 327/week @ 2024-02-15 180/week @ 2024-02-22 184/week @ 2024-02-29 313/week @ 2024-03-07 211/week @ 2024-03-14 243/week @ 2024-03-21 205/week @ 2024-03-28

984 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

~15–26MB
~233K SLoC