1
0
Fork 0
mirror of https://github.com/joshuarubin/go-sway synced 2024-05-10 19:26:04 +02:00
go-sway/README.md
Joshua Rubin b11e8903a3
add LICENSE and README
Signed-off-by: Joshua Rubin <me@jawa.dev>
2019-04-14 21:56:30 -06:00

953 B

Go Report Card GoDoc

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.

Differences from the i3 package

  • 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.

Assumptions

  • The $SWAYSOCK variable must be set properly in the environment
  • sway is running on a machine with the same byteorder as the client