![]() ![]() The appropriate method simply returns a channel from which you can read Event objects. I3ipc handles subscriptions in a convenient way: you don't have to think about managing the socket or watch out for unordered replies. You can create such a socket quite easily: ipcsocket, err := i3ipc.GetIPCSocket()Īs a simple example of what you could do next, let's get the version of i3 over our new socket: version, err := ipcsocket.GetVersion()įor further commands, refer to go doc or use the aforementioned website. This object has methods for all message types that i3 will accept, though some might be split into multiple methods (eg. Thanks to Go's built-in git support, you can start using i3ipc with a simple import "/mdirkse/i3ipc"įor everything except subscriptions, you will want to create an IPCSocket over which the communication will take place. We'll do our best to make this library track the i3 IPC as closely as possible, but if you find anything missing (or broken) please file an issue or (even better) submit a pull request. ![]() ![]() We only try to avoid breaking changes to the documented values since we consider those stable, but with good enough reason even those can change. ![]() It can change with every release and usually does in one way or another. However, according to the i3 maintainers: This library can be used with the i3 IPC as it is as of at least version 4.13. If you want to take a look at the documentation then head to. I3ipc is a golang library for convenient access to the IPC API of the i3 window manager. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |