4 * i3 - an improved dynamic tiling window manager
6 * © 2009-2010 Michael Stapelberg and contributors
8 * See file LICENSE for license information.
10 * This public header defines the different constants and message types to use
11 * for the IPC interface to i3 (see docs/ipc for more information).
19 * Messages from clients to i3
23 /** Never change this, only on major IPC breakage (don’t do that) */
24 #define I3_IPC_MAGIC "i3-ipc"
26 /** The payload of the message will be interpreted as a command */
27 #define I3_IPC_MESSAGE_TYPE_COMMAND 0
29 /** Requests the current workspaces from i3 */
30 #define I3_IPC_MESSAGE_TYPE_GET_TREE 1
34 * Messages from i3 to clients
38 /** Command reply type */
39 #define I3_IPC_REPLY_TYPE_COMMAND 0
41 /** Workspaces reply type */
42 #define I3_IPC_REPLY_TYPE_TREE 1
45 * Events from i3 to clients. Events have the first bit set high.
48 #define I3_IPC_EVENT_MASK (1 << 31)
50 /* The workspace event will be triggered upon changes in the workspace list */
51 #define I3_IPC_EVENT_WORKSPACE (I3_IPC_EVENT_MASK | 0)
53 /* The output event will be triggered upon changes in the output list */
54 #define I3_IPC_EVENT_OUTPUT (I3_IPC_EVENT_MASK | 1)