i3
Macros | Functions
commands.h File Reference
#include "commands_parser.h"
Include dependency graph for commands.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define I3_CMD   Match *current_match, struct CommandResultIR *cmd_output
 The beginning of the prototype for every cmd_ function. More...
 

Functions

void cmd_criteria_init (I3_CMD)
 Initializes the specified 'Match' data structure and the initial state of commands.c for matching target windows of a command. More...
 
void cmd_criteria_match_windows (I3_CMD)
 A match specification just finished (the closing square bracket was found), so we filter the list of owindows. More...
 
void cmd_criteria_add (I3_CMD, const char *ctype, const char *cvalue)
 Interprets a ctype=cvalue pair and adds it to the current match specification. More...
 
void cmd_move_con_to_workspace (I3_CMD, const char *which)
 Implementation of 'move [window|container] [to] workspace next|prev|next_on_output|prev_on_output'. More...
 
void cmd_move_con_to_workspace_back_and_forth (I3_CMD)
 Implementation of 'move [window|container] [to] workspace back_and_forth'. More...
 
void cmd_move_con_to_workspace_name (I3_CMD, const char *name, const char *no_auto_back_and_forth)
 Implementation of 'move [–no-auto-back-and-forth] [window|container] [to] workspace <name>'. More...
 
void cmd_move_con_to_workspace_number (I3_CMD, const char *which, const char *no_auto_back_and_forth)
 Implementation of 'move [–no-auto-back-and-forth] [window|container] [to] workspace number <number>'. More...
 
void cmd_resize_set (I3_CMD, long cwidth, long cheight)
 Implementation of 'resize set <px> [px] <px> [px]'. More...
 
void cmd_resize (I3_CMD, const char *way, const char *direction, long resize_px, long resize_ppt)
 Implementation of 'resize grow|shrink <direction> [<px> px] [or <ppt> ppt]'. More...
 
void cmd_border (I3_CMD, const char *border_style_str, long border_width)
 Implementation of 'border normal|pixel [<n>]', 'border none|1pixel|toggle'. More...
 
void cmd_nop (I3_CMD, const char *comment)
 Implementation of 'nop <comment>'. More...
 
void cmd_append_layout (I3_CMD, const char *path)
 Implementation of 'append_layout <path>'. More...
 
void cmd_workspace (I3_CMD, const char *which)
 Implementation of 'workspace next|prev|next_on_output|prev_on_output'. More...
 
void cmd_workspace_number (I3_CMD, const char *which, const char *no_auto_back_and_forth)
 Implementation of 'workspace [–no-auto-back-and-forth] number <number>'. More...
 
void cmd_workspace_back_and_forth (I3_CMD)
 Implementation of 'workspace back_and_forth'. More...
 
void cmd_workspace_name (I3_CMD, const char *name, const char *no_auto_back_and_forth)
 Implementation of 'workspace [–no-auto-back-and-forth] <name>'. More...
 
void cmd_mark (I3_CMD, const char *mark, const char *mode, const char *toggle)
 Implementation of 'mark [–add|–replace] [–toggle] <mark>'. More...
 
void cmd_unmark (I3_CMD, const char *mark)
 Implementation of 'unmark [mark]'. More...
 
void cmd_mode (I3_CMD, const char *mode)
 Implementation of 'mode <string>'. More...
 
void cmd_move_con_to_output (I3_CMD, const char *name)
 Implementation of 'move [window|container] [to] output <str>'. More...
 
void cmd_move_con_to_mark (I3_CMD, const char *mark)
 Implementation of 'move [window|container] [to] mark <str>'. More...
 
void cmd_floating (I3_CMD, const char *floating_mode)
 Implementation of 'floating enable|disable|toggle'. More...
 
void cmd_move_workspace_to_output (I3_CMD, const char *name)
 Implementation of 'move workspace to [output] <str>'. More...
 
void cmd_split (I3_CMD, const char *direction)
 Implementation of 'split v|h|t|vertical|horizontal|toggle'. More...
 
void cmd_kill (I3_CMD, const char *kill_mode_str)
 Implementation of 'kill [window|client]'. More...
 
void cmd_exec (I3_CMD, const char *nosn, const char *command)
 Implementation of 'exec [–no-startup-id] <command>'. More...
 
void cmd_focus_direction (I3_CMD, const char *direction)
 Implementation of 'focus left|right|up|down'. More...
 
void cmd_focus_window_mode (I3_CMD, const char *window_mode)
 Implementation of 'focus tiling|floating|mode_toggle'. More...
 
void cmd_focus_level (I3_CMD, const char *level)
 Implementation of 'focus parent|child'. More...
 
void cmd_focus (I3_CMD)
 Implementation of 'focus'. More...
 
void cmd_fullscreen (I3_CMD, const char *action, const char *fullscreen_mode)
 Implementation of 'fullscreen [enable|disable|toggle] [global]'. More...
 
void cmd_sticky (I3_CMD, const char *action)
 Implementation of 'sticky enable|disable|toggle'. More...
 
void cmd_move_direction (I3_CMD, const char *direction, long move_px)
 Implementation of 'move <direction> [<pixels> [px]]'. More...
 
void cmd_layout (I3_CMD, const char *layout_str)
 Implementation of 'layout default|stacked|stacking|tabbed|splitv|splith'. More...
 
void cmd_layout_toggle (I3_CMD, const char *toggle_mode)
 Implementation of 'layout toggle [all|split]'. More...
 
void cmd_exit (I3_CMD)
 Implementation of 'exit'. More...
 
void cmd_reload (I3_CMD)
 Implementation of 'reload'. More...
 
void cmd_restart (I3_CMD)
 Implementation of 'restart'. More...
 
void cmd_open (I3_CMD)
 Implementation of 'open'. More...
 
void cmd_focus_output (I3_CMD, const char *name)
 Implementation of 'focus output <output>'. More...
 
void cmd_move_window_to_position (I3_CMD, const char *method, long x, long y)
 Implementation of 'move [window|container] [to] [absolute] position <px> [px] <px> [px]. More...
 
void cmd_move_window_to_center (I3_CMD, const char *method)
 Implementation of 'move [window|container] [to] [absolute] position center. More...
 
void cmd_move_window_to_mouse (I3_CMD)
 Implementation of 'move [window|container] [to] position mouse'. More...
 
void cmd_move_scratchpad (I3_CMD)
 Implementation of 'move scratchpad'. More...
 
void cmd_scratchpad_show (I3_CMD)
 Implementation of 'scratchpad show'. More...
 
void cmd_title_format (I3_CMD, const char *format)
 Implementation of 'title_format <format>'. More...
 
void cmd_rename_workspace (I3_CMD, const char *old_name, const char *new_name)
 Implementation of 'rename workspace <name> to <name>'. More...
 
void cmd_bar (I3_CMD, const char *bar_type, const char *bar_value, const char *bar_id)
 Implementation of 'bar (hidden_state hide|show|toggle)|(mode dock|hide|invisible|toggle) [<bar_id>]'. More...
 
void cmd_shmlog (I3_CMD, const char *argument)
 
void cmd_debuglog (I3_CMD, const char *argument)
 

Macro Definition Documentation

#define I3_CMD   Match *current_match, struct CommandResultIR *cmd_output

The beginning of the prototype for every cmd_ function.

Definition at line 15 of file commands.h.

Function Documentation

void cmd_append_layout ( I3_CMD  ,
const char *  path 
)
void cmd_bar ( I3_CMD  ,
const char *  bar_type,
const char *  bar_value,
const char *  bar_id 
)

Implementation of 'bar (hidden_state hide|show|toggle)|(mode dock|hide|invisible|toggle) [<bar_id>]'.

Definition at line 2058 of file commands.c.

References cmd_bar_hidden_state(), cmd_bar_mode(), ELOG, update_barconfig(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_border ( I3_CMD  ,
const char *  border_style_str,
long  border_width 
)

Implementation of 'border normal|pixel [<n>]', 'border none|1pixel|toggle'.

Definition at line 719 of file commands.c.

References Con::border_style, BS_NONE, BS_NORMAL, BS_PIXEL, owindow::con, con_set_border_style(), DLOG, ELOG, HANDLE_EMPTY_MATCH, logical_px(), Con::name, TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_criteria_add ( I3_CMD  ,
const char *  ctype,
const char *  cvalue 
)

Interprets a ctype=cvalue pair and adds it to the current match specification.

Definition at line 277 of file commands.c.

References current_match, and match_parse_property().

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_criteria_init ( I3_CMD  )

Initializes the specified 'Match' data structure and the initial state of commands.c for matching target windows of a command.

Referenced by GENERATED_call(), and parse_command().

void cmd_criteria_match_windows ( I3_CMD  )

A match specification just finished (the closing square bracket was found), so we filter the list of owindows.

Definition at line 194 of file commands.c.

References owindow::con, Match::con_id, current_match, DLOG, FREE, Match::mark, match_matches_window(), mark_t::name, Con::name, regex_matches(), TAILQ_EMPTY, TAILQ_END, TAILQ_FIRST, TAILQ_FOREACH, TAILQ_INIT, TAILQ_INSERT_TAIL, TAILQ_NEXT, and Con::window.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_debuglog ( I3_CMD  ,
const char *  argument 
)

Definition at line 2111 of file commands.c.

References get_debug_logging(), LOG, set_debug_logging(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_exec ( I3_CMD  ,
const char *  nosn,
const char *  command 
)

Implementation of 'exec [–no-startup-id] <command>'.

Definition at line 1215 of file commands.c.

References DLOG, start_application(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_exit ( I3_CMD  )

Implementation of 'exit'.

Definition at line 1565 of file commands.c.

References config, conn, ipc_shutdown(), Config::ipc_socket_path, and LOG.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_floating ( I3_CMD  ,
const char *  floating_mode 
)

Implementation of 'floating enable|disable|toggle'.

Definition at line 1087 of file commands.c.

References owindow::con, DLOG, floating_disable(), floating_enable(), HANDLE_EMPTY_MATCH, Con::name, TAILQ_FOREACH, toggle_floating_mode(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_focus ( I3_CMD  )

Implementation of 'focus'.

Definition at line 1314 of file commands.c.

References owindow::con, con_focus(), con_fullscreen_permits_focusing(), con_get_workspace(), current_match, DLOG, ELOG, focused, LOG, match_is_empty(), Con::name, scratchpad_show(), TAILQ_FOREACH, workspace_get(), workspace_show(), yerror, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_focus_direction ( I3_CMD  ,
const char *  direction 
)

Implementation of 'focus left|right|up|down'.

Definition at line 1229 of file commands.c.

References DLOG, ELOG, HORIZ, tree_next(), VERT, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_focus_level ( I3_CMD  ,
const char *  level 
)

Implementation of 'focus parent|child'.

Definition at line 1286 of file commands.c.

References con_fullscreen_permits_focusing(), DLOG, ELOG, focused, level_down(), level_up(), Con::parent, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_focus_output ( I3_CMD  ,
const char *  name 
)

Implementation of 'focus output <output>'.

Definition at line 1638 of file commands.c.

References owindow::con, xoutput::con, DLOG, get_output_from_string(), get_output_of_con(), GREP_FIRST, HANDLE_EMPTY_MATCH, LOG, output_get_content(), TAILQ_FOREACH, workspace_is_visible(), workspace_show(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_focus_window_mode ( I3_CMD  ,
const char *  window_mode 
)

Implementation of 'focus tiling|floating|mode_toggle'.

Definition at line 1255 of file commands.c.

References con_descend_focused(), con_focus(), con_get_workspace(), con_inside_floating(), DLOG, focused, TAILQ_FOREACH, Con::type, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_fullscreen ( I3_CMD  ,
const char *  action,
const char *  fullscreen_mode 
)

Implementation of 'fullscreen [enable|disable|toggle] [global]'.

Definition at line 1390 of file commands.c.

References CF_GLOBAL, CF_OUTPUT, owindow::con, con_disable_fullscreen(), con_enable_fullscreen(), con_toggle_fullscreen(), DLOG, HANDLE_EMPTY_MATCH, Con::name, TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_kill ( I3_CMD  ,
const char *  kill_mode_str 
)

Implementation of 'kill [window|client]'.

Definition at line 1182 of file commands.c.

References owindow::con, con_close(), DLOG, ELOG, HANDLE_EMPTY_MATCH, KILL_CLIENT, KILL_WINDOW, TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_layout ( I3_CMD  ,
const char *  layout_str 
)

Implementation of 'layout default|stacked|stacking|tabbed|splitv|splith'.

Definition at line 1494 of file commands.c.

References owindow::con, con_is_docked(), con_set_layout(), DLOG, ELOG, HANDLE_EMPTY_MATCH, L_DEFAULT, L_SPLITH, L_SPLITV, L_STACKED, L_TABBED, Con::name, TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_layout_toggle ( I3_CMD  ,
const char *  toggle_mode 
)

Implementation of 'layout toggle [all|split]'.

Definition at line 1538 of file commands.c.

References owindow::con, con_toggle_layout(), current_match, DLOG, focused, match_is_empty(), Con::name, TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_mark ( I3_CMD  ,
const char *  mark,
const char *  mode,
const char *  toggle 
)

Implementation of 'mark [–add|–replace] [–toggle] <mark>'.

Definition at line 965 of file commands.c.

References owindow::con, con_mark(), con_mark_toggle(), DLOG, HANDLE_EMPTY_MATCH, MM_ADD, MM_REPLACE, Con::name, TAILQ_FIRST, TAILQ_LAST, yerror, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_mode ( I3_CMD  ,
const char *  mode 
)

Implementation of 'mode <string>'.

Definition at line 1017 of file commands.c.

References DLOG, switch_mode(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_con_to_mark ( I3_CMD  ,
const char *  mark 
)

Implementation of 'move [window|container] [to] mark <str>'.

Definition at line 1067 of file commands.c.

References owindow::con, con_move_to_mark(), DLOG, HANDLE_EMPTY_MATCH, Con::name, TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_con_to_output ( I3_CMD  ,
const char *  name 
)

Implementation of 'move [window|container] [to] output <str>'.

Definition at line 1029 of file commands.c.

References owindow::con, xoutput::con, con_move_to_workspace(), DLOG, ELOG, get_output_from_string(), get_output_of_con(), GREP_FIRST, HANDLE_EMPTY_MATCH, Con::name, output_get_content(), TAILQ_FOREACH, workspace_is_visible(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_con_to_workspace ( I3_CMD  ,
const char *  which 
)

Implementation of 'move [window|container] [to] workspace next|prev|next_on_output|prev_on_output'.

Definition at line 286 of file commands.c.

References owindow::con, con_get_workspace(), con_has_children(), con_move_to_workspace(), current_match, DLOG, ELOG, focused, HANDLE_EMPTY_MATCH, match_is_empty(), Con::name, TAILQ_EMPTY, TAILQ_FOREACH, Con::type, workspace_next(), workspace_next_on_output(), workspace_prev(), workspace_prev_on_output(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_con_to_workspace_back_and_forth ( I3_CMD  )

Implementation of 'move [window|container] [to] workspace back_and_forth'.

Definition at line 335 of file commands.c.

References owindow::con, con_move_to_workspace(), DLOG, HANDLE_EMPTY_MATCH, Con::name, TAILQ_FOREACH, workspace_back_and_forth_get(), yerror, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_con_to_workspace_name ( I3_CMD  ,
const char *  name,
const char *  no_auto_back_and_forth 
)

Implementation of 'move [–no-auto-back-and-forth] [window|container] [to] workspace <name>'.

Definition at line 362 of file commands.c.

References owindow::con, con_has_children(), con_move_to_workspace(), current_match, DLOG, ELOG, focused, HANDLE_EMPTY_MATCH, LOG, match_is_empty(), maybe_auto_back_and_forth_workspace(), Con::name, TAILQ_EMPTY, TAILQ_FOREACH, Con::type, workspace_get(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_con_to_workspace_number ( I3_CMD  ,
const char *  which,
const char *  no_auto_back_and_forth 
)

Implementation of 'move [–no-auto-back-and-forth] [window|container] [to] workspace number <number>'.

Definition at line 408 of file commands.c.

References owindow::con, con_has_children(), con_move_to_workspace(), croot, current_match, DLOG, focused, GREP_FIRST, HANDLE_EMPTY_MATCH, LOG, match_is_empty(), maybe_auto_back_and_forth_workspace(), Con::name, Con::num, output_get_content(), TAILQ_EMPTY, TAILQ_FOREACH, Con::type, workspace_get(), ws_name_to_number(), yerror, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_direction ( I3_CMD  ,
const char *  direction,
long  move_px 
)

Implementation of 'move <direction> [<pixels> [px]]'.

Definition at line 1455 of file commands.c.

References owindow::con, con_focus(), con_is_floating(), D_DOWN, D_LEFT, D_RIGHT, D_UP, DLOG, floating_reposition(), focused, HANDLE_EMPTY_MATCH, Con::parent, Con::rect, TAILQ_FOREACH, tree_move(), Rect::x, Rect::y, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_scratchpad ( I3_CMD  )

Implementation of 'move scratchpad'.

Definition at line 1795 of file commands.c.

References owindow::con, DLOG, HANDLE_EMPTY_MATCH, Con::name, scratchpad_move(), TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_window_to_center ( I3_CMD  ,
const char *  method 
)

Implementation of 'move [window|container] [to] [absolute] position center.

Definition at line 1727 of file commands.c.

References owindow::con, con_get_workspace(), con_inside_floating(), croot, DLOG, ELOG, floating_center(), floating_maybe_reassign_ws(), HANDLE_EMPTY_MATCH, Con::name, Con::rect, TAILQ_FOREACH, yerror, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_window_to_mouse ( I3_CMD  )

Implementation of 'move [window|container] [to] position mouse'.

Definition at line 1771 of file commands.c.

References owindow::con, con_inside_floating(), DLOG, floating_move_to_pointer(), HANDLE_EMPTY_MATCH, Con::name, TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_window_to_position ( I3_CMD  ,
const char *  method,
long  x,
long  y 
)

Implementation of 'move [window|container] [to] [absolute] position <px> [px] <px> [px].

Definition at line 1680 of file commands.c.

References owindow::con, con_is_floating(), DLOG, ELOG, floating_maybe_reassign_ws(), floating_reposition(), HANDLE_EMPTY_MATCH, Con::parent, Con::rect, TAILQ_FOREACH, x, Rect::x, y, Rect::y, yerror, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_move_workspace_to_output ( I3_CMD  ,
const char *  name 
)

Implementation of 'move workspace to [output] <str>'.

Definition at line 1118 of file commands.c.

References owindow::con, con_get_workspace(), DLOG, ELOG, HANDLE_EMPTY_MATCH, TAILQ_FOREACH, workspace_move_to_output(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_nop ( I3_CMD  ,
const char *  comment 
)

Implementation of 'nop <comment>'.

Definition at line 768 of file commands.c.

References LOG.

Referenced by GENERATED_call().

void cmd_open ( I3_CMD  )

Implementation of 'open'.

Definition at line 1618 of file commands.c.

References owindow::con, con_focus(), L_SPLITH, Con::layout, LOG, tree_open_con(), y, and ystr.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_reload ( I3_CMD  )

Implementation of 'reload'.

Definition at line 1582 of file commands.c.

References command_error_nagbar_pid, config_error_nagbar_pid, conn, ipc_send_workspace_event(), kill_nagbar(), load_configuration(), LOG, update_barconfig(), x_set_i3_atoms(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_rename_workspace ( I3_CMD  ,
const char *  old_name,
const char *  new_name 
)
void cmd_resize ( I3_CMD  ,
const char *  way,
const char *  direction,
long  resize_px,
long  resize_ppt 
)

Implementation of 'resize grow|shrink <direction> [<px> px] [or <ppt> ppt]'.

Definition at line 648 of file commands.c.

References cmd_resize_floating(), cmd_resize_tiling_direction(), cmd_resize_tiling_width_height(), owindow::con, con_inside_floating(), current_match, DLOG, Window::dock, HANDLE_EMPTY_MATCH, TAILQ_FOREACH, Con::window, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_resize_set ( I3_CMD  ,
long  cwidth,
long  cheight 
)

Implementation of 'resize set <px> [px] <px> [px]'.

Definition at line 691 of file commands.c.

References owindow::con, con_inside_floating(), DLOG, ELOG, floating_resize(), HANDLE_EMPTY_MATCH, TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_restart ( I3_CMD  )

Implementation of 'restart'.

Definition at line 1601 of file commands.c.

References config, i3_restart(), ipc_shutdown(), Config::ipc_socket_path, LOG, purge_zerobyte_logfile(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_scratchpad_show ( I3_CMD  )

Implementation of 'scratchpad show'.

Definition at line 1815 of file commands.c.

References owindow::con, current_match, DLOG, match_is_empty(), Con::name, scratchpad_show(), TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_shmlog ( I3_CMD  ,
const char *  argument 
)

Definition at line 2080 of file commands.c.

References default_shmlog_size, init_logging(), LOG, shmlog_size, update_shmlog_atom(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_split ( I3_CMD  ,
const char *  direction 
)

Implementation of 'split v|h|t|vertical|horizontal|toggle'.

Definition at line 1143 of file commands.c.

References owindow::con, con_is_docked(), DLOG, ELOG, HANDLE_EMPTY_MATCH, HORIZ, L_SPLITH, Con::layout, LOG, Con::name, Con::parent, TAILQ_FOREACH, tree_split(), Con::type, VERT, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_sticky ( I3_CMD  ,
const char *  action 
)

Implementation of 'sticky enable|disable|toggle'.

Definition at line 1417 of file commands.c.

References owindow::con, DLOG, ELOG, ewmh_update_sticky(), ewmh_update_wm_desktop(), focused, HANDLE_EMPTY_MATCH, Window::id, Con::name, output_push_sticky_windows(), Con::sticky, TAILQ_FOREACH, Con::window, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_title_format ( I3_CMD  ,
const char *  format 
)

Implementation of 'title_format <format>'.

Definition at line 1837 of file commands.c.

References owindow::con, con_parse_title_format(), Con::deco_render_params, DLOG, ewmh_update_visible_name(), FREE, HANDLE_EMPTY_MATCH, i3string_as_utf8(), I3STRING_FREE, Window::id, Con::name, Window::name_x_changed, sstrdup(), TAILQ_FOREACH, Con::title_format, Con::window, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_unmark ( I3_CMD  ,
const char *  mark 
)

Implementation of 'unmark [mark]'.

Definition at line 998 of file commands.c.

References owindow::con, con_unmark(), current_match, match_is_empty(), TAILQ_FOREACH, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_workspace ( I3_CMD  ,
const char *  which 
)

Implementation of 'workspace next|prev|next_on_output|prev_on_output'.

Definition at line 840 of file commands.c.

References CF_GLOBAL, con_get_fullscreen_con(), croot, DLOG, ELOG, LOG, workspace_next(), workspace_next_on_output(), workspace_prev(), workspace_prev_on_output(), workspace_show(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_workspace_back_and_forth ( I3_CMD  )

Implementation of 'workspace back_and_forth'.

Definition at line 918 of file commands.c.

References CF_GLOBAL, con_get_fullscreen_con(), croot, LOG, workspace_back_and_forth(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_workspace_name ( I3_CMD  ,
const char *  name,
const char *  no_auto_back_and_forth 
)

Implementation of 'workspace [–no-auto-back-and-forth] <name>'.

Definition at line 936 of file commands.c.

References CF_GLOBAL, con_get_fullscreen_con(), croot, DLOG, LOG, maybe_back_and_forth(), workspace_show_by_name(), and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function:

void cmd_workspace_number ( I3_CMD  ,
const char *  which,
const char *  no_auto_back_and_forth 
)

Implementation of 'workspace [–no-auto-back-and-forth] number <number>'.

Definition at line 876 of file commands.c.

References CF_GLOBAL, con_get_fullscreen_con(), croot, GREP_FIRST, LOG, maybe_back_and_forth(), Con::name, Con::num, output_get_content(), TAILQ_FOREACH, workspace_show(), workspace_show_by_name(), ws_name_to_number(), yerror, and ysuccess.

Referenced by GENERATED_call().

Here is the call graph for this function: