i3
config_directives.h File Reference
#include <config.h>
#include "config_parser.h"
Include dependency graph for config_directives.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define I3_CFG   Match *current_match, struct ConfigResultIR *result
 The beginning of the prototype for every cfg_ function.
#define CFGFUN(name, ...)

Functions

i3_event_state_mask_t event_state_from_str (const char *str)
 A utility function to convert a string containing the group and modifiers to the corresponding bit mask.
 CFGFUN (criteria_init, int _state)
 CFGFUN (criteria_add, const char *ctype, const char *cvalue)
 CFGFUN (criteria_pop_state)
 CFGFUN (include, const char *pattern)
 CFGFUN (font, const char *font)
 CFGFUN (exec, const char *exectype, const char *no_startup_id, const char *command)
 CFGFUN (for_window, const char *command)
 CFGFUN (gaps, const char *workspace, const char *type, const long value)
 CFGFUN (smart_borders, const char *enable)
 CFGFUN (smart_gaps, const char *enable)
 CFGFUN (floating_minimum_size, const long width, const long height)
 CFGFUN (floating_maximum_size, const long width, const long height)
 CFGFUN (default_orientation, const char *orientation)
 CFGFUN (workspace_layout, const char *layout)
 CFGFUN (workspace_back_and_forth, const char *value)
 CFGFUN (focus_follows_mouse, const char *value)
 CFGFUN (mouse_warping, const char *value)
 CFGFUN (focus_wrapping, const char *value)
 CFGFUN (force_focus_wrapping, const char *value)
 CFGFUN (force_xinerama, const char *value)
 CFGFUN (disable_randr15, const char *value)
 CFGFUN (fake_outputs, const char *outputs)
 CFGFUN (force_display_urgency_hint, const long duration_ms)
 CFGFUN (focus_on_window_activation, const char *mode)
 CFGFUN (title_align, const char *alignment)
 CFGFUN (show_marks, const char *value)
 CFGFUN (hide_edge_borders, const char *borders)
 CFGFUN (assign_output, const char *output)
 CFGFUN (assign, const char *workspace, bool is_number)
 CFGFUN (no_focus)
 CFGFUN (ipc_socket, const char *path)
 CFGFUN (ipc_kill_timeout, const long timeout_ms)
 CFGFUN (tiling_drag, const char *value)
 CFGFUN (restart_state, const char *path)
 CFGFUN (popup_during_fullscreen, const char *value)
 CFGFUN (color, const char *colorclass, const char *labelqube, const char *border, const char *background, const char *text, const char *indicator, const char *child_border)
 CFGFUN (color_single, const char *colorclass, const char *color)
 CFGFUN (floating_modifier, const char *modifiers)
 CFGFUN (default_border, const char *windowtype, const char *border, const long width)
 CFGFUN (workspace, const char *workspace, const char *output)
 CFGFUN (binding, const char *bindtype, const char *modifiers, const char *key, const char *release, const char *border, const char *whole_window, const char *exclude_titlebar, const char *command)
 CFGFUN (enter_mode, const char *pango_markup, const char *mode)
 CFGFUN (mode_binding, const char *bindtype, const char *modifiers, const char *key, const char *release, const char *border, const char *whole_window, const char *exclude_titlebar, const char *command)
 CFGFUN (bar_font, const char *font)
 CFGFUN (bar_separator_symbol, const char *separator)
 CFGFUN (bar_mode, const char *mode)
 CFGFUN (bar_hidden_state, const char *hidden_state)
 CFGFUN (bar_id, const char *bar_id)
 CFGFUN (bar_output, const char *output)
 CFGFUN (bar_verbose, const char *verbose)
 CFGFUN (bar_height, const long height)
 CFGFUN (bar_padding_one, const long all)
 CFGFUN (bar_padding_two, const long top_and_bottom, const long right_and_left)
 CFGFUN (bar_padding_three, const long top, const long right_and_left, const long bottom)
 CFGFUN (bar_padding_four, const long top, const long right, const long bottom, const long left)
 CFGFUN (bar_modifier, const char *modifiers)
 CFGFUN (bar_wheel_up_cmd, const char *command)
 CFGFUN (bar_wheel_down_cmd, const char *command)
 CFGFUN (bar_bindsym, const char *button, const char *release, const char *command)
 CFGFUN (bar_position, const char *position)
 CFGFUN (bar_i3bar_command, const char *i3bar_command)
 CFGFUN (bar_color, const char *colorclass, const char *border, const char *background, const char *text)
 CFGFUN (bar_socket_path, const char *socket_path)
 CFGFUN (bar_tray_output, const char *output)
 CFGFUN (bar_tray_padding, const long spacing_px)
 CFGFUN (bar_color_single, const char *colorclass, const char *color)
 CFGFUN (bar_status_command, const char *command)
 CFGFUN (bar_workspace_command, const char *command)
 CFGFUN (bar_binding_mode_indicator, const char *value)
 CFGFUN (bar_workspace_buttons, const char *value)
 CFGFUN (bar_workspace_min_width, const long width)
 CFGFUN (bar_strip_workspace_numbers, const char *value)
 CFGFUN (bar_strip_workspace_name, const char *value)
 CFGFUN (bar_start)
 CFGFUN (bar_finish)

Macro Definition Documentation

◆ CFGFUN

#define CFGFUN ( name,
... )
Value:
void cfg_##name(I3_CFG, ##__VA_ARGS__)
#define I3_CFG
The beginning of the prototype for every cfg_ function.

Definition at line 28 of file config_directives.h.

◆ I3_CFG

#define I3_CFG   Match *current_match, struct ConfigResultIR *result

The beginning of the prototype for every cfg_ function.

Definition at line 23 of file config_directives.h.

Function Documentation

◆ CFGFUN() [1/75]

CFGFUN ( assign ,
const char * workspace,
bool is_number )

◆ CFGFUN() [2/75]

CFGFUN ( assign_output ,
const char * output )

◆ CFGFUN() [3/75]

CFGFUN ( bar_binding_mode_indicator ,
const char * value )

Definition at line 906 of file config_directives.c.

References boolstr(), and current_bar.

Here is the call graph for this function:

◆ CFGFUN() [4/75]

CFGFUN ( bar_bindsym ,
const char * button,
const char * release,
const char * command )

Definition at line 827 of file config_directives.c.

References bar_configure_binding(), Barbinding::command, and Barbinding::release.

Here is the call graph for this function:

◆ CFGFUN() [5/75]

CFGFUN ( bar_color ,
const char * colorclass,
const char * border,
const char * background,
const char * text )

Definition at line 840 of file config_directives.c.

References APPLY_COLORS.

◆ CFGFUN() [6/75]

CFGFUN ( bar_color_single ,
const char * colorclass,
const char * color )

Definition at line 881 of file config_directives.c.

References current_bar, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [7/75]

CFGFUN ( bar_finish )

Definition at line 934 of file config_directives.c.

References barconfigs, config, current_bar, DLOG, sasprintf(), and TAILQ_INSERT_TAIL.

Here is the call graph for this function:

◆ CFGFUN() [8/75]

CFGFUN ( bar_font ,
const char * font )

Definition at line 708 of file config_directives.c.

References current_bar, FREE, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [9/75]

CFGFUN ( bar_height ,
const long height )

Definition at line 741 of file config_directives.c.

References current_bar.

◆ CFGFUN() [10/75]

CFGFUN ( bar_hidden_state ,
const char * hidden_state )

Definition at line 722 of file config_directives.c.

References current_bar.

◆ CFGFUN() [11/75]

CFGFUN ( bar_i3bar_command ,
const char * i3bar_command )

Definition at line 835 of file config_directives.c.

References current_bar, FREE, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [12/75]

CFGFUN ( bar_id ,
const char * bar_id )

Definition at line 726 of file config_directives.c.

References current_bar, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [13/75]

CFGFUN ( bar_mode ,
const char * mode )

Definition at line 718 of file config_directives.c.

References current_bar.

◆ CFGFUN() [14/75]

CFGFUN ( bar_modifier ,
const char * modifiers )

Definition at line 785 of file config_directives.c.

References current_bar, and event_state_from_str().

Here is the call graph for this function:

◆ CFGFUN() [15/75]

CFGFUN ( bar_output ,
const char * output )

Definition at line 730 of file config_directives.c.

References current_bar, Workspace_Assignment::output, srealloc(), and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [16/75]

CFGFUN ( bar_padding_four ,
const long top,
const long right,
const long bottom,
const long left )

Definition at line 777 of file config_directives.c.

References current_bar, and dlog_padding().

Here is the call graph for this function:

◆ CFGFUN() [17/75]

CFGFUN ( bar_padding_one ,
const long all )

Definition at line 753 of file config_directives.c.

References current_bar, and dlog_padding().

Here is the call graph for this function:

◆ CFGFUN() [18/75]

CFGFUN ( bar_padding_three ,
const long top,
const long right_and_left,
const long bottom )

Definition at line 769 of file config_directives.c.

References current_bar, and dlog_padding().

Here is the call graph for this function:

◆ CFGFUN() [19/75]

CFGFUN ( bar_padding_two ,
const long top_and_bottom,
const long right_and_left )

Definition at line 761 of file config_directives.c.

References current_bar, and dlog_padding().

Here is the call graph for this function:

◆ CFGFUN() [20/75]

CFGFUN ( bar_position ,
const char * position )

Definition at line 831 of file config_directives.c.

References current_bar.

◆ CFGFUN() [21/75]

CFGFUN ( bar_separator_symbol ,
const char * separator )

Definition at line 713 of file config_directives.c.

References current_bar, FREE, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [22/75]

CFGFUN ( bar_socket_path ,
const char * socket_path )

Definition at line 866 of file config_directives.c.

References current_bar, FREE, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [23/75]

CFGFUN ( bar_start )

Definition at line 926 of file config_directives.c.

References current_bar, scalloc(), and TAILQ_INIT.

Here is the call graph for this function:

◆ CFGFUN() [24/75]

CFGFUN ( bar_status_command ,
const char * command )

Definition at line 896 of file config_directives.c.

References current_bar, FREE, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [25/75]

CFGFUN ( bar_strip_workspace_name ,
const char * value )

Definition at line 922 of file config_directives.c.

References boolstr(), and current_bar.

Here is the call graph for this function:

◆ CFGFUN() [26/75]

CFGFUN ( bar_strip_workspace_numbers ,
const char * value )

Definition at line 918 of file config_directives.c.

References boolstr(), and current_bar.

Here is the call graph for this function:

◆ CFGFUN() [27/75]

CFGFUN ( bar_tray_output ,
const char * output )

Definition at line 871 of file config_directives.c.

References current_bar, tray_output_t::output, scalloc(), sstrdup(), and TAILQ_INSERT_TAIL.

Here is the call graph for this function:

◆ CFGFUN() [28/75]

CFGFUN ( bar_tray_padding ,
const long spacing_px )

Definition at line 877 of file config_directives.c.

References current_bar.

◆ CFGFUN() [29/75]

CFGFUN ( bar_verbose ,
const char * verbose )

Definition at line 737 of file config_directives.c.

References boolstr(), current_bar, and verbose.

Here is the call graph for this function:

◆ CFGFUN() [30/75]

CFGFUN ( bar_wheel_down_cmd ,
const char * command )

Definition at line 822 of file config_directives.c.

References bar_configure_binding(), Barbinding::command, and ELOG.

Here is the call graph for this function:

◆ CFGFUN() [31/75]

CFGFUN ( bar_wheel_up_cmd ,
const char * command )

Definition at line 817 of file config_directives.c.

References bar_configure_binding(), Barbinding::command, and ELOG.

Here is the call graph for this function:

◆ CFGFUN() [32/75]

CFGFUN ( bar_workspace_buttons ,
const char * value )

Definition at line 910 of file config_directives.c.

References boolstr(), and current_bar.

Here is the call graph for this function:

◆ CFGFUN() [33/75]

CFGFUN ( bar_workspace_command ,
const char * command )

Definition at line 901 of file config_directives.c.

References current_bar, FREE, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [34/75]

CFGFUN ( bar_workspace_min_width ,
const long width )

Definition at line 914 of file config_directives.c.

References current_bar.

◆ CFGFUN() [35/75]

CFGFUN ( binding ,
const char * bindtype,
const char * modifiers,
const char * key,
const char * release,
const char * border,
const char * whole_window,
const char * exclude_titlebar,
const char * command )

Definition at line 171 of file config_directives.c.

References configure_binding(), and DEFAULT_BINDING_MODE.

Here is the call graph for this function:

◆ CFGFUN() [36/75]

CFGFUN ( color ,
const char * colorclass,
const char * labelqube,
const char * border,
const char * background,
const char * text,
const char * indicator,
const char * child_border )

◆ CFGFUN() [37/75]

CFGFUN ( color_single ,
const char * colorclass,
const char * color )

Definition at line 563 of file config_directives.c.

References config, draw_util_hex_to_color(), and QUBE_DOM0.

Here is the call graph for this function:

◆ CFGFUN() [38/75]

CFGFUN ( criteria_add ,
const char * ctype,
const char * cvalue )

Definition at line 120 of file config_directives.c.

References current_match, and match_parse_property().

Here is the call graph for this function:

◆ CFGFUN() [39/75]

CFGFUN ( criteria_init ,
int _state )

Definition at line 103 of file config_directives.c.

References criteria_next_state, current_match, DLOG, match_free(), and match_init().

Here is the call graph for this function:

◆ CFGFUN() [40/75]

CFGFUN ( criteria_pop_state )

Definition at line 111 of file config_directives.c.

References criteria_next_state.

◆ CFGFUN() [41/75]

CFGFUN ( default_border ,
const char * windowtype,
const char * border,
const long width )

Definition at line 363 of file config_directives.c.

References BS_NONE, BS_NORMAL, BS_PIXEL, config, DLOG, and logical_px().

Here is the call graph for this function:

◆ CFGFUN() [42/75]

CFGFUN ( default_orientation ,
const char * orientation )

Definition at line 344 of file config_directives.c.

References config, HORIZ, NO_ORIENTATION, and VERT.

◆ CFGFUN() [43/75]

CFGFUN ( disable_randr15 ,
const char * value )

Definition at line 429 of file config_directives.c.

References boolstr(), and config.

Here is the call graph for this function:

◆ CFGFUN() [44/75]

CFGFUN ( enter_mode ,
const char * pango_markup,
const char * mode )

Definition at line 191 of file config_directives.c.

References current_mode, current_mode_pango_markup, DEFAULT_BINDING_MODE, DLOG, ELOG, FREE, modes, Mode::name, Mode::pango_markup, SLIST_FOREACH, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [45/75]

CFGFUN ( exec ,
const char * exectype,
const char * no_startup_id,
const char * command )

Definition at line 210 of file config_directives.c.

References autostarts, autostarts_always, Autostart::command, Autostart::no_startup_id, smalloc(), sstrdup(), and TAILQ_INSERT_TAIL.

Here is the call graph for this function:

◆ CFGFUN() [46/75]

CFGFUN ( fake_outputs ,
const char * outputs )

Definition at line 462 of file config_directives.c.

References config, outputs, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [47/75]

CFGFUN ( floating_maximum_size ,
const long width,
const long height )

Definition at line 335 of file config_directives.c.

References config.

◆ CFGFUN() [48/75]

CFGFUN ( floating_minimum_size ,
const long width,
const long height )

Definition at line 330 of file config_directives.c.

References config.

◆ CFGFUN() [49/75]

CFGFUN ( floating_modifier ,
const char * modifiers )

Definition at line 340 of file config_directives.c.

References config, and event_state_from_str().

Here is the call graph for this function:

◆ CFGFUN() [50/75]

CFGFUN ( focus_follows_mouse ,
const char * value )

Definition at line 414 of file config_directives.c.

References boolstr(), and config.

Here is the call graph for this function:

◆ CFGFUN() [51/75]

CFGFUN ( focus_on_window_activation ,
const char * mode )

Definition at line 471 of file config_directives.c.

References config, DLOG, and ELOG.

◆ CFGFUN() [52/75]

CFGFUN ( focus_wrapping ,
const char * value )

Definition at line 433 of file config_directives.c.

References boolstr(), config, FOCUS_WRAPPING_FORCE, FOCUS_WRAPPING_OFF, FOCUS_WRAPPING_ON, and FOCUS_WRAPPING_WORKSPACE.

Here is the call graph for this function:

◆ CFGFUN() [53/75]

CFGFUN ( font ,
const char * font )

Definition at line 166 of file config_directives.c.

References config, load_font(), and set_font().

Here is the call graph for this function:

◆ CFGFUN() [54/75]

CFGFUN ( for_window ,
const char * command )

◆ CFGFUN() [55/75]

CFGFUN ( force_display_urgency_hint ,
const long duration_ms )

Definition at line 467 of file config_directives.c.

References config.

◆ CFGFUN() [56/75]

CFGFUN ( force_focus_wrapping ,
const char * value )

Definition at line 445 of file config_directives.c.

References boolstr(), config, FOCUS_WRAPPING_FORCE, and FOCUS_WRAPPING_ON.

Here is the call graph for this function:

◆ CFGFUN() [57/75]

CFGFUN ( force_xinerama ,
const char * value )

Definition at line 425 of file config_directives.c.

References boolstr(), config, and force_xinerama.

Here is the call graph for this function:

◆ CFGFUN() [58/75]

CFGFUN ( gaps ,
const char * workspace,
const char * type,
const long value )

Definition at line 305 of file config_directives.c.

References apply_gaps(), config, create_gaps_assignment(), gaps_scope_to_mask(), and logical_px().

Here is the call graph for this function:

◆ CFGFUN() [59/75]

CFGFUN ( hide_edge_borders ,
const char * borders )

Definition at line 395 of file config_directives.c.

References boolstr(), config, HEBM_BOTH, HEBM_HORIZONTAL, HEBM_NONE, HEBM_SMART, HEBM_SMART_NO_GAPS, and HEBM_VERTICAL.

Here is the call graph for this function:

◆ CFGFUN() [60/75]

◆ CFGFUN() [61/75]

CFGFUN ( ipc_kill_timeout ,
const long timeout_ms )

Definition at line 684 of file config_directives.c.

References ipc_set_kill_timeout().

Here is the call graph for this function:

◆ CFGFUN() [62/75]

CFGFUN ( ipc_socket ,
const char * path )

Definition at line 543 of file config_directives.c.

References config, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [63/75]

CFGFUN ( mode_binding ,
const char * bindtype,
const char * modifiers,
const char * key,
const char * release,
const char * border,
const char * whole_window,
const char * exclude_titlebar,
const char * command )

Definition at line 182 of file config_directives.c.

References configure_binding(), current_mode, and current_mode_pango_markup.

Here is the call graph for this function:

◆ CFGFUN() [64/75]

CFGFUN ( mouse_warping ,
const char * value )

Definition at line 418 of file config_directives.c.

References config, POINTER_WARPING_NONE, and POINTER_WARPING_OUTPUT.

◆ CFGFUN() [65/75]

CFGFUN ( no_focus )

Definition at line 671 of file config_directives.c.

References assignments, current_match, DLOG, ELOG, Assignment::match, match_copy(), match_is_empty(), scalloc(), TAILQ_INSERT_TAIL, and Assignment::type.

Here is the call graph for this function:

◆ CFGFUN() [66/75]

CFGFUN ( popup_during_fullscreen ,
const char * value )

Definition at line 553 of file config_directives.c.

References config.

◆ CFGFUN() [67/75]

CFGFUN ( restart_state ,
const char * path )

Definition at line 548 of file config_directives.c.

References config, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [68/75]

CFGFUN ( show_marks ,
const char * value )

Definition at line 500 of file config_directives.c.

References boolstr(), and config.

Here is the call graph for this function:

◆ CFGFUN() [69/75]

CFGFUN ( smart_borders ,
const char * enable )

Definition at line 316 of file config_directives.c.

References boolstr(), config, SMART_BORDERS_NO_GAPS, SMART_BORDERS_OFF, and SMART_BORDERS_ON.

Here is the call graph for this function:

◆ CFGFUN() [70/75]

CFGFUN ( smart_gaps ,
const char * enable )

Definition at line 323 of file config_directives.c.

References boolstr(), config, SMART_GAPS_INVERSE_OUTER, SMART_GAPS_OFF, and SMART_GAPS_ON.

Here is the call graph for this function:

◆ CFGFUN() [71/75]

CFGFUN ( tiling_drag ,
const char * value )

Definition at line 688 of file config_directives.c.

References config, tiling_drag(), TILING_DRAG_MODIFIER, TILING_DRAG_MODIFIER_OR_TITLEBAR, TILING_DRAG_OFF, and TILING_DRAG_TITLEBAR.

Here is the call graph for this function:

◆ CFGFUN() [72/75]

CFGFUN ( title_align ,
const char * alignment )

Definition at line 488 of file config_directives.c.

References config.

◆ CFGFUN() [73/75]

CFGFUN ( workspace ,
const char * workspace,
const char * output )

◆ CFGFUN() [74/75]

CFGFUN ( workspace_back_and_forth ,
const char * value )

Definition at line 458 of file config_directives.c.

References boolstr(), config, and workspace_back_and_forth().

Here is the call graph for this function:

◆ CFGFUN() [75/75]

CFGFUN ( workspace_layout ,
const char * layout )

Definition at line 353 of file config_directives.c.

References config, L_DEFAULT, L_STACKED, and L_TABBED.

◆ event_state_from_str()

i3_event_state_mask_t event_state_from_str ( const char * str)

A utility function to convert a string containing the group and modifiers to the corresponding bit mask.

Definition at line 132 of file config_directives.c.

References I3_XKB_GROUP_MASK_1, I3_XKB_GROUP_MASK_2, I3_XKB_GROUP_MASK_3, and I3_XKB_GROUP_MASK_4.

Referenced by CFGFUN(), CFGFUN(), and configure_binding().