#ipc #swaywm #sway

swayipc

A library for controlling sway through its IPC interface

32 stable releases (3 major)

Uses new Rust 2024

4.0.0 Oct 26, 2025
3.0.3 Nov 11, 2024
3.0.2 Nov 22, 2023
3.0.1 Aug 10, 2022
1.1.2 Nov 30, 2019

#226 in Network programming

Download history 30306/week @ 2025-10-25 27162/week @ 2025-11-01 31037/week @ 2025-11-08 34787/week @ 2025-11-15 24354/week @ 2025-11-22 24551/week @ 2025-11-29 26458/week @ 2025-12-06 19671/week @ 2025-12-13 6189/week @ 2025-12-20 3643/week @ 2025-12-27 31420/week @ 2026-01-03 44004/week @ 2026-01-10 42143/week @ 2026-01-17 43073/week @ 2026-01-24 44077/week @ 2026-01-31 47777/week @ 2026-02-07

185,467 downloads per month
Used in 33 crates

MIT license

61KB
1.5K SLoC

swayipc   Action Badge Version Badge License Badge Docs Badge

A Rust library for controlling swaywm through its IPC interface.

Usage

Examples of how to use the library can be found here.

i3 compatibility

i3 compatibility is kept if possible even though this library primarily targets sway.

Versioning

This library targets the latest stable release of sway.

Contributing

If you find any errors in swayipc or just want to add a new feature feel free to submit a PR.

Dependencies

~0.5–1.5MB
~31K SLoC