X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fcommands.h;h=0137460feae0624218af57ec10d2426ab6b5dc6b;hb=e4d2b385529847b926a716731be4a8c22ed79007;hp=d3485f154fb7dac95c5c742f78fa2a9b6b6cec73;hpb=7a77c5f0bb988ec2fff52e231590fff93a4ee6b9;p=i3%2Fi3 diff --git a/include/commands.h b/include/commands.h index d3485f15..0137460f 100644 --- a/include/commands.h +++ b/include/commands.h @@ -9,6 +9,8 @@ */ #pragma once +#include + #include "commands_parser.h" /** The beginning of the prototype for every cmd_ function. */ @@ -49,22 +51,22 @@ void cmd_move_con_to_workspace(I3_CMD, const char *which); void cmd_move_con_to_workspace_back_and_forth(I3_CMD); /** - * Implementation of 'move [window|container] [to] workspace '. + * Implementation of 'move [--no-auto-back-and-forth] [window|container] [to] workspace '. * */ -void cmd_move_con_to_workspace_name(I3_CMD, const char *name); +void cmd_move_con_to_workspace_name(I3_CMD, const char *name, const char *no_auto_back_and_forth); /** - * Implementation of 'move [window|container] [to] workspace number '. + * Implementation of 'move [--no-auto-back-and-forth] [window|container] [to] workspace number '. * */ -void cmd_move_con_to_workspace_number(I3_CMD, const char *which); +void cmd_move_con_to_workspace_number(I3_CMD, const char *which, const char *no_auto_back_and_forth); /** - * Implementation of 'resize set [px] [px]'. + * Implementation of 'resize set [px | ppt] [px | ppt]'. * */ -void cmd_resize_set(I3_CMD, long cwidth, long cheight); +void cmd_resize_set(I3_CMD, long cwidth, const char *mode_width, long cheight, const char *mode_height); /** * Implementation of 'resize grow|shrink [ px] [or ppt]'. @@ -76,7 +78,7 @@ void cmd_resize(I3_CMD, const char *way, const char *direction, long resize_px, * Implementation of 'border normal|pixel []', 'border none|1pixel|toggle'. * */ -void cmd_border(I3_CMD, const char *border_style_str, const char *border_width); +void cmd_border(I3_CMD, const char *border_style_str, long border_width); /** * Implementation of 'nop '. @@ -97,10 +99,10 @@ void cmd_append_layout(I3_CMD, const char *path); void cmd_workspace(I3_CMD, const char *which); /** - * Implementation of 'workspace number ' + * Implementation of 'workspace [--no-auto-back-and-forth] number ' * */ -void cmd_workspace_number(I3_CMD, const char *which); +void cmd_workspace_number(I3_CMD, const char *which, const char *no_auto_back_and_forth); /** * Implementation of 'workspace back_and_forth'. @@ -109,10 +111,10 @@ void cmd_workspace_number(I3_CMD, const char *which); void cmd_workspace_back_and_forth(I3_CMD); /** - * Implementation of 'workspace ' + * Implementation of 'workspace [--no-auto-back-and-forth] ' * */ -void cmd_workspace_name(I3_CMD, const char *name); +void cmd_workspace_name(I3_CMD, const char *name, const char *no_auto_back_and_forth); /** * Implementation of 'mark [--add|--replace] [--toggle] ' @@ -157,7 +159,7 @@ void cmd_floating(I3_CMD, const char *floating_mode); void cmd_move_workspace_to_output(I3_CMD, const char *name); /** - * Implementation of 'split v|h|vertical|horizontal'. + * Implementation of 'split v|h|t|vertical|horizontal|toggle'. * */ void cmd_split(I3_CMD, const char *direction); @@ -214,7 +216,7 @@ void cmd_sticky(I3_CMD, const char *action); * Implementation of 'move [ [px]]'. * */ -void cmd_move_direction(I3_CMD, const char *direction, long move_px); +void cmd_move_direction(I3_CMD, const char *direction_str, long move_px); /** * Implementation of 'layout default|stacked|stacking|tabbed|splitv|splith'. @@ -262,7 +264,7 @@ void cmd_focus_output(I3_CMD, const char *name); * Implementation of 'move [window|container] [to] [absolute] position [px] [px] * */ -void cmd_move_window_to_position(I3_CMD, const char *method, long x, long y); +void cmd_move_window_to_position(I3_CMD, long x, long y); /** * Implementation of 'move [window|container] [to] [absolute] position center @@ -288,6 +290,12 @@ void cmd_move_scratchpad(I3_CMD); */ void cmd_scratchpad_show(I3_CMD); +/** + * Implementation of 'swap [container] [with] id|con_id|mark '. + * + */ +void cmd_swap(I3_CMD, const char *mode, const char *arg); + /** * Implementation of 'title_format ' * @@ -306,13 +314,13 @@ void cmd_rename_workspace(I3_CMD, const char *old_name, const char *new_name); */ void cmd_bar(I3_CMD, const char *bar_type, const char *bar_value, const char *bar_id); -/* +/** * Implementation of 'shmlog |toggle|on|off' * */ void cmd_shmlog(I3_CMD, const char *argument); -/* +/** * Implementation of 'debuglog toggle|on|off' * */