#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

#564 in GUI

Download history 343/week @ 2024-01-08 1656/week @ 2024-01-15 416/week @ 2024-01-22 678/week @ 2024-01-29 438/week @ 2024-02-05 909/week @ 2024-02-12 157/week @ 2024-02-19 232/week @ 2024-02-26 221/week @ 2024-03-04 266/week @ 2024-03-11 220/week @ 2024-03-18 245/week @ 2024-03-25 370/week @ 2024-04-01 358/week @ 2024-04-08 318/week @ 2024-04-15 266/week @ 2024-04-22

1,343 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–24MB
~227K SLoC