mirror of
https://github.com/JakeStanger/swayipc-rs.git
synced 2026-07-11 07:54:45 +01:00
A library for controlling sway through its IPC interface
- Rust 100%
Do not require the field `status_command` to be a String type. Make it possible for deserialize to handle `null` value. If the field `status_command` is not set in sway, the returned value in `null`. This can be seen with `swaymsg -t get_bar_config bar-0`. In case of `null` the test `get_bar_ids_and_one_config()` fails. After making the field optional, serde does not crash and the test passes. |
||
|---|---|---|
| .github/workflows | ||
| async | ||
| blocking | ||
| examples | ||
| types | ||
| .gitignore | ||
| Cargo.toml | ||
| LICENSE.md | ||
| README.md | ||
swayipc

A Rust library for controlling swaywm through its IPC interface. This repository contains swayipc a blocking way to communicate with sway and swayipc-async for asynchronus communication.
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-rs or just want to add a new feature feel free to submit a PR.
Credits
- Michael Stapelberg for his awesome work implementing the i3ipc protocol in go.
- Trevor Merrifield for his awesome work implementing the i3ipc protocol in rust.
- And ofc Drew DeVault and all the sway contributors for creating sway.