#wlroots #screenshot #wayland #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

#1730 in GUI

Download history 393/week @ 2024-12-16 258/week @ 2024-12-23 193/week @ 2024-12-30 458/week @ 2025-01-06 457/week @ 2025-01-13 437/week @ 2025-01-20 296/week @ 2025-01-27 570/week @ 2025-02-03 523/week @ 2025-02-10 381/week @ 2025-02-17 1142/week @ 2025-02-24 290/week @ 2025-03-03 593/week @ 2025-03-10 480/week @ 2025-03-17 567/week @ 2025-03-24 350/week @ 2025-03-31

2,008 downloads per month
Used in 9 crates (3 directly)

BSD-2-Clause

38KB
886 lines

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.


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

Dependencies

~7–17MB
~251K SLoC