IPC interface (interprocess communication)
-<michael+i3@stapelberg.de>
-March 2010 +<michael@i3wm.org>
+October 2014
The method of choice for IPC in our case is a unix socket because it has very little overhead on both sides and is usually available without headaches in -most languages. In the default configuration file, no ipc-socket path is -specified and thus no socket is created. The standard path (which i3-msg and -i3-input use) is ~/.i3/ipc.sock.
All i3 utilities, like i3-msg and i3-input will read the I3_SOCKET_PATH +X11 property, stored on the X11 root window.
+ Warning
+ |
+
+ Use an existing library! There are existing libraries for many languages. You can have a look at
+[libraries] or search the web if your language of choice is not mentioned.
+Usually, it is not necessary to implement low-level communication with i3
+directly. |
+