]> git.sur5r.net Git - i3/i3/blob - man/i3-msg.man
Merge branch 'master' into next
[i3/i3] / man / i3-msg.man
1 i3-msg(1)
2 =========
3 Michael Stapelberg <michael+i3@stapelberg.de>
4 v4.2, January 2012
5
6 == NAME
7
8 i3-msg - send messages to i3 window manager
9
10 == SYNOPSIS
11
12 i3-msg [-t type] [message]
13
14 == IPC MESSAGE TYPES
15
16 command::
17 The payload of the message is a command for i3 (like the commands you can bind
18 to keys in the configuration file) and will be executed directly after
19 receiving it.
20
21 get_workspaces::
22 Gets the current workspaces. The reply will be a JSON-encoded list of
23 workspaces.
24
25 get_outputs::
26 Gets the current outputs. The reply will be a JSON-encoded list of outputs (see
27 the reply section).
28
29 get_tree::
30 Gets the layout tree. i3 uses a tree as data structure which includes every
31 container. The reply will be the JSON-encoded tree.
32
33 get_marks::
34 Gets a list of marks (identifiers for containers to easily jump to them later).
35 The reply will be a JSON-encoded list of window marks.
36
37 get_bar_config::
38 Gets the configuration (as JSON map) of the workspace bar with the given ID. If
39 no ID is provided, an array with all configured bar IDs is returned instead.
40
41
42 == DESCRIPTION
43
44 i3-msg is a sample implementation for a client using the unix socket IPC
45 interface to i3.
46
47 == EXAMPLES
48
49 ------------------------------------------------
50 # Use 1-px border for current client
51 i3-msg "border 1pixel"
52
53 # You can leave out the quotes
54 i3-msg border normal
55
56 # Dump the layout tree
57 i3-msg -t get_tree
58 ------------------------------------------------
59
60 == ENVIRONMENT
61
62 === I3SOCK
63
64 If no ipc-socket is specified on the commandline, this variable is used
65 to determine the path, at wich the unix domain socket is expected, on which
66 to connect to i3.
67
68 == SEE ALSO
69
70 i3(1)
71
72 == AUTHOR
73
74 Michael Stapelberg and contributors