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 _COMMANDS_H
11 #define _COMMANDS_H
12 
13 #include "commands_parser.h"
14 
16 #define I3_CMD Match *current_match, struct CommandResult *cmd_output
17 
18 /*
19  * Helper data structure for an operation window (window on which the operation
20  * will be performed). Used to build the TAILQ owindows.
21  *
22  */
23 typedef struct owindow {
24  Con *con;
26 } owindow;
27 
28 typedef TAILQ_HEAD(owindows_head, owindow) owindows_head;
29 
36 
42 void cmd_criteria_match_windows(I3_CMD);
43 
49 void cmd_criteria_add(I3_CMD, char *ctype, char *cvalue);
50 
56 void cmd_move_con_to_workspace(I3_CMD, char *which);
57 
62 void cmd_move_con_to_workspace_name(I3_CMD, char *name);
63 
68 void cmd_move_con_to_workspace_number(I3_CMD, char *which);
69 
74 void cmd_resize(I3_CMD, char *way, char *direction, char *resize_px, char *resize_ppt);
75 
80 void cmd_border(I3_CMD, char *border_style_str);
81 
86 void cmd_nop(I3_CMD, char *comment);
87 
92 void cmd_append_layout(I3_CMD, char *path);
93 
98 void cmd_workspace(I3_CMD, char *which);
99 
104 void cmd_workspace_number(I3_CMD, char *which);
105 
110 void cmd_workspace_back_and_forth(I3_CMD);
111 
116 void cmd_workspace_name(I3_CMD, char *name);
117 
122 void cmd_mark(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_exit(I3_CMD);
213 
218 void cmd_reload(I3_CMD);
219 
224 void cmd_restart(I3_CMD);
225 
230 void cmd_open(I3_CMD);
231 
236 void cmd_focus_output(I3_CMD, char *name);
237 
242 void cmd_move_window_to_position(I3_CMD, char *method, char *x, char *y);
243 
248 void cmd_move_window_to_center(I3_CMD, char *method);
249 
254 void cmd_move_scratchpad(I3_CMD);
255 
260 void cmd_scratchpad_show(I3_CMD);
261 
266 void cmd_rename_workspace(I3_CMD, char *old_name, char *new_name);
267 
268 #endif