i3
commands.h
Go to the documentation of this file.
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009-2012 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * commands.c: all command functions (see commands_parser.c)
8  *
9  */
10 #ifndef I3_COMMANDS_H
11 #define I3_COMMANDS_H
12 
13 #include "commands_parser.h"
14 
16 #define I3_CMD Match *current_match, struct CommandResult *cmd_output
17 
24 
31 
37 void cmd_criteria_add(I3_CMD, char *ctype, char *cvalue);
38 
44 void cmd_move_con_to_workspace(I3_CMD, char *which);
45 
51 
56 void cmd_move_con_to_workspace_name(I3_CMD, char *name);
57 
62 void cmd_move_con_to_workspace_number(I3_CMD, char *which);
63 
68 void cmd_resize(I3_CMD, char *way, char *direction, char *resize_px, char *resize_ppt);
69 
74 void cmd_border(I3_CMD, char *border_style_str, char *border_width);
75 
80 void cmd_nop(I3_CMD, char *comment);
81 
86 void cmd_append_layout(I3_CMD, char *path);
87 
92 void cmd_workspace(I3_CMD, char *which);
93 
98 void cmd_workspace_number(I3_CMD, char *which);
99 
105 
110 void cmd_workspace_name(I3_CMD, char *name);
111 
116 void cmd_mark(I3_CMD, char *mark);
117 
122 void cmd_unmark(I3_CMD, char *mark);
123 
128 void cmd_mode(I3_CMD, char *mode);
129 
134 void cmd_move_con_to_output(I3_CMD, char *name);
135 
140 void cmd_floating(I3_CMD, char *floating_mode);
141 
146 void cmd_move_workspace_to_output(I3_CMD, char *name);
147 
152 void cmd_split(I3_CMD, char *direction);
153 
158 void cmd_kill(I3_CMD, char *kill_mode_str);
159 
164 void cmd_exec(I3_CMD, char *nosn, char *command);
165 
170 void cmd_focus_direction(I3_CMD, char *direction);
171 
176 void cmd_focus_window_mode(I3_CMD, char *window_mode);
177 
182 void cmd_focus_level(I3_CMD, char *level);
183 
188 void cmd_focus(I3_CMD);
189 
194 void cmd_fullscreen(I3_CMD, char *fullscreen_mode);
195 
200 void cmd_move_direction(I3_CMD, char *direction, char *move_px);
201 
206 void cmd_layout(I3_CMD, char *layout_str);
207 
212 void cmd_layout_toggle(I3_CMD, char *toggle_mode);
213 
218 void cmd_exit(I3_CMD);
219 
224 void cmd_reload(I3_CMD);
225 
230 void cmd_restart(I3_CMD);
231 
236 void cmd_open(I3_CMD);
237 
242 void cmd_focus_output(I3_CMD, char *name);
243 
248 void cmd_move_window_to_position(I3_CMD, char *method, char *x, char *y);
249 
254 void cmd_move_window_to_center(I3_CMD, char *method);
255 
261 
267 
272 void cmd_rename_workspace(I3_CMD, char *old_name, char *new_name);
273 
278 void cmd_bar(I3_CMD, char *bar_type, char *bar_value, char *bar_id);
279 
280 /*
281  * Implementation of 'shmlog <size>|toggle|on|off'
282  *
283  */
284 void cmd_shmlog(I3_CMD, char *argument);
285 
286 /*
287  * Implementation of 'debuglog toggle|on|off'
288  *
289  */
290 void cmd_debuglog(I3_CMD, char *argument);
291 
292 #endif
void cmd_workspace_name(I3_CMD, char *name)
Implementation of &#39;workspace &lt;name&gt;&#39;.
Definition: commands.c:989
#define I3_CMD
The beginning of the prototype for every cmd_ function.
Definition: commands.h:16
void cmd_floating(I3_CMD, char *floating_mode)
Implementation of &#39;floating enable|disable|toggle&#39;.
Definition: commands.c:1132
void cmd_fullscreen(I3_CMD, char *fullscreen_mode)
Implementation of &#39;fullscreen [global]&#39;.
Definition: commands.c:1515
void cmd_unmark(I3_CMD, char *mark)
Implementation of &#39;unmark [mark]&#39;.
Definition: commands.c:1038
void cmd_focus_window_mode(I3_CMD, char *window_mode)
Implementation of &#39;focus tiling|floating|mode_toggle&#39;.
Definition: commands.c:1377
void cmd_workspace_number(I3_CMD, char *which)
Implementation of &#39;workspace number &lt;number&gt;&#39;.
Definition: commands.c:932
void cmd_move_con_to_workspace_back_and_forth(I3_CMD)
Implementation of &#39;move [window|container] [to] workspace back_and_forth&#39;.
Definition: commands.c:437
void cmd_border(I3_CMD, char *border_style_str, char *border_width)
Implementation of &#39;border normal|none|1pixel|toggle&#39;.
Definition: commands.c:826
void cmd_focus_output(I3_CMD, char *name)
Implementation of &#39;focus output &lt;output&gt;&#39;.
Definition: commands.c:1704
void cmd_scratchpad_show(I3_CMD)
Implementation of &#39;scratchpad show&#39;.
Definition: commands.c:1851
void cmd_rename_workspace(I3_CMD, char *old_name, char *new_name)
Implementation of &#39;rename workspace &lt;name&gt; to &lt;name&gt;&#39;.
Definition: commands.c:1873
void cmd_open(I3_CMD)
Implementation of &#39;open&#39;.
Definition: commands.c:1684
void cmd_move_window_to_position(I3_CMD, char *method, char *cx, char *cy)
Implementation of &#39;move [window|container] [to] [absolute] position &lt;px&gt; [px] &lt;px&gt; [px]...
Definition: commands.c:1746
void cmd_criteria_add(I3_CMD, char *ctype, char *cvalue)
Interprets a ctype=cvalue pair and adds it to the current match specification.
Definition: commands.c:309
void cmd_mark(I3_CMD, char *mark)
Implementation of &#39;mark &lt;mark&gt;&#39;.
Definition: commands.c:1010
void cmd_shmlog(I3_CMD, char *argument)
Definition: commands.c:2061
void cmd_exec(I3_CMD, char *nosn, char *command)
Implementation of &#39;exec [–no-startup-id] &lt;command&gt;&#39;.
Definition: commands.c:1337
void cmd_debuglog(I3_CMD, char *argument)
Definition: commands.c:2092
void cmd_exit(I3_CMD)
Implementation of &#39;exit&#39;.
Definition: commands.c:1641
void cmd_move_con_to_workspace_name(I3_CMD, char *name)
Implementation of &#39;move [window|container] [to] workspace &lt;name&gt;&#39;.
Definition: commands.c:469
void cmd_criteria_init(I3_CMD)
Initializes the specified &#39;Match&#39; data structure and the initial state of commands.c for matching target windows of a command.
void cmd_resize(I3_CMD, char *way, char *direction, char *resize_px, char *resize_ppt)
Implementation of &#39;resize grow|shrink &lt;direction&gt; [&lt;px&gt; px] [or &lt;ppt&gt; ppt]&#39;.
Definition: commands.c:787
void cmd_workspace_back_and_forth(I3_CMD)
Implementation of &#39;workspace back_and_forth&#39;.
Definition: commands.c:977
void cmd_layout_toggle(I3_CMD, char *toggle_mode)
Implementation of &#39;layout toggle [all|split]&#39;.
Definition: commands.c:1614
void cmd_criteria_match_windows(I3_CMD)
A match specification just finished (the closing square bracket was found), so we filter the list of ...
Definition: commands.c:261
uint32_t x
Definition: data.h:30
void cmd_kill(I3_CMD, char *kill_mode_str)
Implementation of &#39;kill [window|client]&#39;.
Definition: commands.c:1300
void cmd_move_direction(I3_CMD, char *direction, char *move_px)
Implementation of &#39;move &lt;direction&gt; [&lt;pixels&gt; [px]]&#39;.
Definition: commands.c:1537
void cmd_nop(I3_CMD, char *comment)
Implementation of &#39;nop &lt;comment&gt;&#39;.
Definition: commands.c:879
void cmd_move_workspace_to_output(I3_CMD, char *name)
Implementation of &#39;move workspace to [output] &lt;str&gt;&#39;.
Definition: commands.c:1163
void cmd_split(I3_CMD, char *direction)
Implementation of &#39;split v|h|vertical|horizontal&#39;.
Definition: commands.c:1278
void cmd_layout(I3_CMD, char *layout_str)
Implementation of &#39;layout default|stacked|stacking|tabbed|splitv|splith&#39;.
Definition: commands.c:1572
void cmd_reload(I3_CMD)
Implementation of &#39;reload&#39;.
Definition: commands.c:1653
void cmd_focus_direction(I3_CMD, char *direction)
Implementation of &#39;focus left|right|up|down&#39;.
Definition: commands.c:1351
void cmd_move_con_to_output(I3_CMD, char *name)
Implementation of &#39;move [window|container] [to] output &lt;str&gt;&#39;.
Definition: commands.c:1075
void cmd_move_window_to_center(I3_CMD, char *method)
Implementation of &#39;move [window|container] [to] [absolute] position center.
Definition: commands.c:1789
void cmd_mode(I3_CMD, char *mode)
Implementation of &#39;mode &lt;string&gt;&#39;.
Definition: commands.c:1063
void cmd_focus_level(I3_CMD, char *level)
Implementation of &#39;focus parent|child&#39;.
Definition: commands.c:1408
uint32_t y
Definition: data.h:31
void cmd_move_scratchpad(I3_CMD)
Implementation of &#39;move scratchpad&#39;.
Definition: commands.c:1831
void cmd_focus(I3_CMD)
Implementation of &#39;focus&#39;.
Definition: commands.c:1435
void cmd_append_layout(I3_CMD, char *path)
Implementation of &#39;append_layout &lt;path&gt;&#39;.
Definition: commands.c:889
void cmd_move_con_to_workspace_number(I3_CMD, char *which)
Implementation of &#39;move [window|container] [to] workspace number &lt;number&gt;&#39;.
Definition: commands.c:514
void cmd_restart(I3_CMD)
Implementation of &#39;restart&#39;.
Definition: commands.c:1672
void cmd_workspace(I3_CMD, char *which)
Implementation of &#39;workspace next|prev|next_on_output|prev_on_output&#39;.
Definition: commands.c:902
void cmd_move_con_to_workspace(I3_CMD, char *which)
Implementation of &#39;move [window|container] [to] workspace next|prev|next_on_output|prev_on_output&#39;.
Definition: commands.c:388
void cmd_bar(I3_CMD, char *bar_type, char *bar_value, char *bar_id)
Implementation of &#39;bar (hidden_state hide|show|toggle)|(mode dock|hide|invisible|toggle) [&lt;bar_id&gt;]&#39;...
Definition: commands.c:2039