i3
include/commands.h
Go to the documentation of this file.
00001 /*
00002  * vim:ts=4:sw=4:expandtab
00003  *
00004  * i3 - an improved dynamic tiling window manager
00005  * © 2009-2012 Michael Stapelberg and contributors (see also: LICENSE)
00006  *
00007  * commands.c: all command functions (see commands_parser.c)
00008  *
00009  */
00010 #ifndef _COMMANDS_H
00011 #define _COMMANDS_H
00012 
00013 #include "commands_parser.h"
00014 
00016 #define I3_CMD Match *current_match, struct CommandResult *cmd_output
00017 
00018 /*
00019  * Helper data structure for an operation window (window on which the operation
00020  * will be performed). Used to build the TAILQ owindows.
00021  *
00022  */
00023 typedef struct owindow {
00024     Con *con;
00025     TAILQ_ENTRY(owindow) owindows;
00026 } owindow;
00027 
00028 typedef TAILQ_HEAD(owindows_head, owindow) owindows_head;
00029 
00035 void cmd_criteria_init(I3_CMD);
00036 
00042 void cmd_criteria_match_windows(I3_CMD);
00043 
00049 void cmd_criteria_add(I3_CMD, char *ctype, char *cvalue);
00050 
00056 void cmd_move_con_to_workspace(I3_CMD, char *which);
00057 
00062 void cmd_move_con_to_workspace_name(I3_CMD, char *name);
00063 
00068 void cmd_move_con_to_workspace_number(I3_CMD, char *which);
00069 
00074 void cmd_resize(I3_CMD, char *way, char *direction, char *resize_px, char *resize_ppt);
00075 
00080 void cmd_border(I3_CMD, char *border_style_str);
00081 
00086 void cmd_nop(I3_CMD, char *comment);
00087 
00092 void cmd_append_layout(I3_CMD, char *path);
00093 
00098 void cmd_workspace(I3_CMD, char *which);
00099 
00104 void cmd_workspace_number(I3_CMD, char *which);
00105 
00110 void cmd_workspace_back_and_forth(I3_CMD);
00111 
00116 void cmd_workspace_name(I3_CMD, char *name);
00117 
00122 void cmd_mark(I3_CMD, char *mark);
00123 
00128 void cmd_mode(I3_CMD, char *mode);
00129 
00134 void cmd_move_con_to_output(I3_CMD, char *name);
00135 
00140 void cmd_floating(I3_CMD, char *floating_mode);
00141 
00146 void cmd_move_workspace_to_output(I3_CMD, char *name);
00147 
00152 void cmd_split(I3_CMD, char *direction);
00153 
00158 void cmd_kill(I3_CMD, char *kill_mode_str);
00159 
00164 void cmd_exec(I3_CMD, char *nosn, char *command);
00165 
00170 void cmd_focus_direction(I3_CMD, char *direction);
00171 
00176 void cmd_focus_window_mode(I3_CMD, char *window_mode);
00177 
00182 void cmd_focus_level(I3_CMD, char *level);
00183 
00188 void cmd_focus(I3_CMD);
00189 
00194 void cmd_fullscreen(I3_CMD, char *fullscreen_mode);
00195 
00200 void cmd_move_direction(I3_CMD, char *direction, char *move_px);
00201 
00206 void cmd_layout(I3_CMD, char *layout_str);
00207 
00212 void cmd_exit(I3_CMD);
00213 
00218 void cmd_reload(I3_CMD);
00219 
00224 void cmd_restart(I3_CMD);
00225 
00230 void cmd_open(I3_CMD);
00231 
00236 void cmd_focus_output(I3_CMD, char *name);
00237 
00242 void cmd_move_window_to_position(I3_CMD, char *method, char *x, char *y);
00243 
00248 void cmd_move_window_to_center(I3_CMD, char *method);
00249 
00254 void cmd_move_scratchpad(I3_CMD);
00255 
00260 void cmd_scratchpad_show(I3_CMD);
00261 
00266 void cmd_rename_workspace(I3_CMD, char *old_name, char *new_name);
00267 
00268 #endif