#screenshot #wlroots #wayland #wayshot

libwayshot-xcap

Screenshot crate for wlroots based compositors implementing the zwlr_screencopy_v1 protocol

1 unstable release

Uses new Rust 2024

0.3.2 May 11, 2025

#1207 in GUI

Download history 375/week @ 2025-08-24 546/week @ 2025-08-31 787/week @ 2025-09-07 468/week @ 2025-09-14 1028/week @ 2025-09-21 572/week @ 2025-09-28 616/week @ 2025-10-05 658/week @ 2025-10-12 1142/week @ 2025-10-19 1077/week @ 2025-10-26 1023/week @ 2025-11-02 915/week @ 2025-11-09 1518/week @ 2025-11-16 1352/week @ 2025-11-23 1155/week @ 2025-11-30 1333/week @ 2025-12-07

5,535 downloads per month
Used in 9 crates (2 directly)

BSD-2-Clause

82KB
1.5K SLoC

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()?;
let image_buffer = wayshot_connection.screenshot_all()?;

Dependencies

~11–24MB
~344K SLoC