#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

#1436 in GUI

Download history 150/week @ 2025-06-13 575/week @ 2025-06-20 291/week @ 2025-06-27 735/week @ 2025-07-04 976/week @ 2025-07-11 531/week @ 2025-07-18 650/week @ 2025-07-25 651/week @ 2025-08-01 831/week @ 2025-08-08 446/week @ 2025-08-15 359/week @ 2025-08-22 483/week @ 2025-08-29 704/week @ 2025-09-05 583/week @ 2025-09-12 730/week @ 2025-09-19 764/week @ 2025-09-26

2,857 downloads per month
Used in 7 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

~12–23MB
~358K SLoC