#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

#203 in Network programming

Download history 43073/week @ 2026-01-24 44077/week @ 2026-01-31 47827/week @ 2026-02-07 31565/week @ 2026-02-14 37786/week @ 2026-02-21 30893/week @ 2026-02-28 34658/week @ 2026-03-07 39562/week @ 2026-03-14 46283/week @ 2026-03-21 32605/week @ 2026-03-28 32867/week @ 2026-04-04 37036/week @ 2026-04-11 25747/week @ 2026-04-18 45048/week @ 2026-04-25 42353/week @ 2026-05-02 47388/week @ 2026-05-09

167,838 downloads per month
Used in 35 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.4–1.3MB
~27K SLoC