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

#5 in #compositors

Download history 278/week @ 2023-11-06 298/week @ 2023-11-13 431/week @ 2023-11-20 213/week @ 2023-11-27 141/week @ 2023-12-04 248/week @ 2023-12-11 447/week @ 2023-12-18 832/week @ 2023-12-25 222/week @ 2024-01-01 402/week @ 2024-01-08 1711/week @ 2024-01-15 462/week @ 2024-01-22 739/week @ 2024-01-29 484/week @ 2024-02-05 970/week @ 2024-02-12 227/week @ 2024-02-19

2,486 downloads per month
Used in wayshot

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
~232K SLoC