#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

#1126 in GUI

Download history 393/week @ 2024-04-04 312/week @ 2024-04-11 291/week @ 2024-04-18 282/week @ 2024-04-25 223/week @ 2024-05-02 243/week @ 2024-05-09 350/week @ 2024-05-16 238/week @ 2024-05-23 325/week @ 2024-05-30 475/week @ 2024-06-06 395/week @ 2024-06-13 361/week @ 2024-06-20 353/week @ 2024-06-27 281/week @ 2024-07-04 329/week @ 2024-07-11 212/week @ 2024-07-18

1,252 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
~223K SLoC