A Zig 0.13 library for controlling swaywm through its IPC interface.
Examples of how to use the library can be found here.
Add swayipc as dependency by modifying your build.zig.zon
and build.zig
files respectively:
.{
...
.dependencies = .{
.swayipc = .{
.url = "https://github.com/JayceFayne/swayipc-zig/archive/<COMMIT_HASH>.tar.gz",
},
},
...
}
exe.addModule("swayipc", b.dependency("swayipc", .{}).module("swayipc"));
i3 compatibility is kept if possible even though this library primarily targets sway.
This library targets the latest stable release of sway and the latest release of zig
If you find any errors in swayipc-zig or just want to add a new feature feel free to submit a PR.