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