#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

#1393 in GUI

Download history 483/week @ 2024-10-30 422/week @ 2024-11-06 458/week @ 2024-11-13 468/week @ 2024-11-20 366/week @ 2024-11-27 335/week @ 2024-12-04 585/week @ 2024-12-11 324/week @ 2024-12-18 187/week @ 2024-12-25 298/week @ 2025-01-01 402/week @ 2025-01-08 476/week @ 2025-01-15 386/week @ 2025-01-22 460/week @ 2025-01-29 492/week @ 2025-02-05 458/week @ 2025-02-12

1,833 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
~236K SLoC