This package simplifies working with the sway IPC from Go. It was highly influenced by the i3 package.
While the i3 and sway IPCs share much in common, they are not identical. This package provides the complete sway api.
- Retries are not handled. Use tools like systemd to automatically restart apps that use this library.
- A much simpler interface for subscriptions and handling events.
- No global state.
- Use of Context throughout.
- The
$SWAYSOCK
variable must be set properly in the environment - sway is running on a machine with the same byteorder as the client