i3
config_directives.c File Reference
#include "all.h"
#include <wordexp.h>
Include dependency graph for config_directives.c:

Go to the source code of this file.

Macros

#define APPLY_COLORS(classname)
 
#define APPLY_COLORS(classname)
 

Functions

 CFGFUN (include, const char *pattern)
 
 CFGFUN (criteria_init, int _state)
 
 CFGFUN (criteria_pop_state)
 
 CFGFUN (criteria_add, const char *ctype, const char *cvalue)
 
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 (font, const char *font)
 
 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 (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 (enter_mode, const char *pango_markup, const char *modename)
 
 CFGFUN (exec, const char *exectype, const char *no_startup_id, const char *command)
 
 CFGFUN (for_window, const char *command)
 
static void apply_gaps (gaps_t *gaps, gaps_mask_t mask, int value)
 
static void create_gaps_assignment (const char *workspace, const gaps_mask_t mask, const int pixels)
 
static gaps_mask_t gaps_scope_to_mask (const char *scope)
 
 CFGFUN (gaps, const char *workspace, const char *scope, 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 (floating_modifier, const char *modifiers)
 
 CFGFUN (tiling_drag_swap_modifier, const char *modifiers)
 
 CFGFUN (default_orientation, const char *orientation)
 
 CFGFUN (workspace_layout, const char *layout)
 
 CFGFUN (default_border, const char *windowtype, const char *border, const long width)
 
 CFGFUN (hide_edge_borders, const char *borders)
 
 CFGFUN (focus_follows_mouse, const char *value)
 
 CFGFUN (mouse_warping, const char *value)
 
 CFGFUN (force_xinerama, const char *value)
 
 CFGFUN (disable_randr15, const char *value)
 
 CFGFUN (focus_wrapping, const char *value)
 
 CFGFUN (force_focus_wrapping, const char *value)
 
 CFGFUN (workspace_back_and_forth, 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 (workspace, const char *workspace, const char *output)
 
 CFGFUN (ipc_socket, const char *path)
 
 CFGFUN (restart_state, const char *path)
 
 CFGFUN (popup_during_fullscreen, const char *value)
 
 CFGFUN (color_single, const char *colorclass, const char *color)
 
 CFGFUN (color, const char *colorclass, const char *border, const char *background, const char *text, const char *indicator, const char *child_border)
 
 CFGFUN (assign_output, const char *output)
 
 CFGFUN (assign, const char *workspace, bool is_number)
 
 CFGFUN (no_focus)
 
 CFGFUN (ipc_kill_timeout, const long timeout_ms)
 
 CFGFUN (tiling_drag, const char *value)
 
 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)
 
static void dlog_padding (void)
 
 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)
 
static void bar_configure_binding (const char *button, const char *release, const char *command)
 
 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 padding_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)
 

Variables

static int criteria_next_state
 
static char * current_mode
 
static bool current_mode_pango_markup
 
static char * current_workspace = NULL
 
static Barconfigcurrent_bar
 

Macro Definition Documentation

◆ APPLY_COLORS [1/2]

#define APPLY_COLORS ( classname)
Value:
do { \
if (strcmp(colorclass, "client." #classname) == 0) { \
if (strcmp("focused_tab_title", #classname) == 0) { \
if (indicator || child_border) { \
ELOG("indicator and child_border colors have no effect for client.focused_tab_title\n"); \
} \
} \
config.client.classname.border = draw_util_hex_to_color(border); \
config.client.classname.background = draw_util_hex_to_color(background); \
config.client.classname.text = draw_util_hex_to_color(text); \
if (indicator != NULL) { \
config.client.classname.indicator = draw_util_hex_to_color(indicator); \
} \
if (child_border != NULL) { \
config.client.classname.child_border = draw_util_hex_to_color(child_border); \
} else { \
config.client.classname.child_border = config.client.classname.background; \
} \
return; \
} \
} while (0)
Config config
Definition config.c:19
color_t draw_util_hex_to_color(const char *color)
Parses the given color in hex format to an internal color representation.
struct Config::config_client client

Referenced by CFGFUN(), and CFGFUN().

◆ APPLY_COLORS [2/2]

#define APPLY_COLORS ( classname)
Value:
do { \
if (strcmp(colorclass, #classname) == 0) { \
if (text != NULL) { \
/* New syntax: border, background, text */ \
current_bar->colors.classname##_border = sstrdup(border); \
current_bar->colors.classname##_bg = sstrdup(background); \
current_bar->colors.classname##_text = sstrdup(text); \
} else { \
/* Old syntax: text, background */ \
current_bar->colors.classname##_bg = sstrdup(background); \
current_bar->colors.classname##_text = sstrdup(border); \
} \
} \
} while (0)
static Barconfig * current_bar
char * sstrdup(const char *str)
Safe-wrapper around strdup which exits if malloc returns NULL (meaning that there is no more memory a...
struct Barconfig::bar_colors colors

Function Documentation

◆ apply_gaps()

static void apply_gaps ( gaps_t * gaps,
gaps_mask_t mask,
int value )
static

◆ bar_configure_binding()

static void bar_configure_binding ( const char * button,
const char * release,
const char * command )
static

Definition at line 806 of file config_directives.c.

References bindings, Barbinding::command, current_bar, ELOG, Barbinding::input_code, Barbinding::release, scalloc(), sstrdup(), TAILQ_FOREACH, and TAILQ_INSERT_TAIL.

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

Here is the call graph for this function:

◆ CFGFUN() [1/76]

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

◆ CFGFUN() [2/76]

CFGFUN ( assign_output ,
const char * output )

◆ CFGFUN() [3/76]

CFGFUN ( bar_binding_mode_indicator ,
const char * value )

Definition at line 924 of file config_directives.c.

References boolstr(), current_bar, and Barconfig::hide_binding_mode_indicator.

Here is the call graph for this function:

◆ CFGFUN() [4/76]

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

Definition at line 844 of file config_directives.c.

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

Here is the call graph for this function:

◆ CFGFUN() [5/76]

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

Definition at line 857 of file config_directives.c.

References APPLY_COLORS.

◆ CFGFUN() [6/76]

◆ CFGFUN() [7/76]

CFGFUN ( bar_finish )

Definition at line 952 of file config_directives.c.

References barconfigs, config, current_bar, DLOG, Barconfig::id, Config::number_barconfigs, sasprintf(), and TAILQ_INSERT_TAIL.

Here is the call graph for this function:

◆ CFGFUN() [8/76]

CFGFUN ( bar_font ,
const char * font )

Definition at line 725 of file config_directives.c.

References current_bar, Barconfig::font, FREE, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [9/76]

CFGFUN ( bar_height ,
const long height )

Definition at line 758 of file config_directives.c.

References Barconfig::bar_height, and current_bar.

◆ CFGFUN() [10/76]

CFGFUN ( bar_hidden_state ,
const char * hidden_state )

Definition at line 739 of file config_directives.c.

References current_bar, and Barconfig::hidden_state.

◆ CFGFUN() [11/76]

CFGFUN ( bar_i3bar_command ,
const char * i3bar_command )

Definition at line 852 of file config_directives.c.

References current_bar, FREE, Barconfig::i3bar_command, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [12/76]

CFGFUN ( bar_id ,
const char * bar_id )

Definition at line 743 of file config_directives.c.

References current_bar, Barconfig::id, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [13/76]

CFGFUN ( bar_mode ,
const char * mode )

Definition at line 735 of file config_directives.c.

References current_bar, and Barconfig::mode.

◆ CFGFUN() [14/76]

CFGFUN ( bar_modifier ,
const char * modifiers )

Definition at line 802 of file config_directives.c.

References current_bar, event_state_from_str(), and Barconfig::modifier.

Here is the call graph for this function:

◆ CFGFUN() [15/76]

CFGFUN ( bar_output ,
const char * output )

Definition at line 747 of file config_directives.c.

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

Here is the call graph for this function:

◆ CFGFUN() [16/76]

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

Definition at line 794 of file config_directives.c.

References current_bar, dlog_padding(), Rect::height, Barconfig::padding, Rect::width, Rect::x, and Rect::y.

Here is the call graph for this function:

◆ CFGFUN() [17/76]

CFGFUN ( bar_padding_one ,
const long all )

Definition at line 770 of file config_directives.c.

References current_bar, dlog_padding(), Rect::height, Barconfig::padding, Rect::width, Rect::x, and Rect::y.

Here is the call graph for this function:

◆ CFGFUN() [18/76]

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

Definition at line 786 of file config_directives.c.

References current_bar, dlog_padding(), Rect::height, Barconfig::padding, Rect::width, Rect::x, and Rect::y.

Here is the call graph for this function:

◆ CFGFUN() [19/76]

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

Definition at line 778 of file config_directives.c.

References current_bar, dlog_padding(), Rect::height, Barconfig::padding, Rect::width, Rect::x, and Rect::y.

Here is the call graph for this function:

◆ CFGFUN() [20/76]

CFGFUN ( bar_position ,
const char * position )

Definition at line 848 of file config_directives.c.

References current_bar, and Barconfig::position.

◆ CFGFUN() [21/76]

CFGFUN ( bar_separator_symbol ,
const char * separator )

Definition at line 730 of file config_directives.c.

References current_bar, FREE, Barconfig::separator_symbol, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [22/76]

CFGFUN ( bar_socket_path ,
const char * socket_path )

Definition at line 883 of file config_directives.c.

References current_bar, FREE, Barconfig::socket_path, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [23/76]

CFGFUN ( bar_start )

Definition at line 944 of file config_directives.c.

References current_bar, Barconfig::modifier, scalloc(), TAILQ_INIT, and Barconfig::tray_padding.

Here is the call graph for this function:

◆ CFGFUN() [24/76]

CFGFUN ( bar_status_command ,
const char * command )

Definition at line 914 of file config_directives.c.

References current_bar, FREE, sstrdup(), and Barconfig::status_command.

Here is the call graph for this function:

◆ CFGFUN() [25/76]

CFGFUN ( bar_strip_workspace_name ,
const char * value )

Definition at line 940 of file config_directives.c.

References boolstr(), current_bar, and Barconfig::strip_workspace_name.

Here is the call graph for this function:

◆ CFGFUN() [26/76]

CFGFUN ( bar_strip_workspace_numbers ,
const char * value )

Definition at line 936 of file config_directives.c.

References boolstr(), current_bar, and Barconfig::strip_workspace_numbers.

Here is the call graph for this function:

◆ CFGFUN() [27/76]

CFGFUN ( bar_tray_output ,
const char * output )

Definition at line 888 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/76]

CFGFUN ( bar_tray_padding ,
const long padding_px )

Definition at line 894 of file config_directives.c.

References current_bar, and Barconfig::tray_padding.

◆ CFGFUN() [29/76]

CFGFUN ( bar_verbose ,
const char * verbose )

Definition at line 754 of file config_directives.c.

References boolstr(), current_bar, Barconfig::verbose, and verbose.

Here is the call graph for this function:

◆ CFGFUN() [30/76]

CFGFUN ( bar_wheel_down_cmd ,
const char * command )

Definition at line 839 of file config_directives.c.

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

Here is the call graph for this function:

◆ CFGFUN() [31/76]

CFGFUN ( bar_wheel_up_cmd ,
const char * command )

Definition at line 834 of file config_directives.c.

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

Here is the call graph for this function:

◆ CFGFUN() [32/76]

CFGFUN ( bar_workspace_buttons ,
const char * value )

Definition at line 928 of file config_directives.c.

References boolstr(), current_bar, and Barconfig::hide_workspace_buttons.

Here is the call graph for this function:

◆ CFGFUN() [33/76]

CFGFUN ( bar_workspace_command ,
const char * command )

Definition at line 919 of file config_directives.c.

References current_bar, FREE, sstrdup(), and Barconfig::workspace_command.

Here is the call graph for this function:

◆ CFGFUN() [34/76]

CFGFUN ( bar_workspace_min_width ,
const long width )

Definition at line 932 of file config_directives.c.

References current_bar, and Barconfig::workspace_min_width.

◆ CFGFUN() [35/76]

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 179 of file config_directives.c.

References configure_binding(), and DEFAULT_BINDING_MODE.

Here is the call graph for this function:

◆ CFGFUN() [36/76]

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

Definition at line 598 of file config_directives.c.

References APPLY_COLORS, and focused.

◆ CFGFUN() [37/76]

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

Definition at line 593 of file config_directives.c.

References Config::config_client::background, Config::client, config, and draw_util_hex_to_color().

Here is the call graph for this function:

◆ CFGFUN() [38/76]

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

Definition at line 116 of file config_directives.c.

References current_match, and match_parse_property().

Here is the call graph for this function:

◆ CFGFUN() [39/76]

CFGFUN ( criteria_init ,
int _state )

Definition at line 99 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/76]

CFGFUN ( criteria_pop_state )

Definition at line 107 of file config_directives.c.

References criteria_next_state.

◆ CFGFUN() [41/76]

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

◆ CFGFUN() [42/76]

CFGFUN ( default_orientation ,
const char * orientation )

Definition at line 368 of file config_directives.c.

References config, Config::default_orientation, HORIZ, NO_ORIENTATION, and VERT.

◆ CFGFUN() [43/76]

CFGFUN ( disable_randr15 ,
const char * value )

Definition at line 457 of file config_directives.c.

References boolstr(), config, and Config::disable_randr15.

Here is the call graph for this function:

◆ CFGFUN() [44/76]

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

Definition at line 199 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/76]

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

Definition at line 218 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/76]

CFGFUN ( fake_outputs ,
const char * outputs )

Definition at line 490 of file config_directives.c.

References config, Config::fake_outputs, outputs, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [47/76]

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

◆ CFGFUN() [48/76]

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

◆ CFGFUN() [49/76]

CFGFUN ( floating_modifier ,
const char * modifiers )

Definition at line 360 of file config_directives.c.

References config, event_state_from_str(), and Config::floating_modifier.

Here is the call graph for this function:

◆ CFGFUN() [50/76]

CFGFUN ( focus_follows_mouse ,
const char * value )

Definition at line 441 of file config_directives.c.

References boolstr(), config, and Config::disable_focus_follows_mouse.

Here is the call graph for this function:

◆ CFGFUN() [51/76]

CFGFUN ( focus_on_window_activation ,
const char * mode )

Definition at line 499 of file config_directives.c.

References config, DLOG, ELOG, and Config::focus_on_window_activation.

◆ CFGFUN() [52/76]

CFGFUN ( focus_wrapping ,
const char * value )

Definition at line 461 of file config_directives.c.

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

Here is the call graph for this function:

◆ CFGFUN() [53/76]

CFGFUN ( font ,
const char * font )

Definition at line 174 of file config_directives.c.

References config, Config::font, load_font(), and set_font().

Here is the call graph for this function:

◆ CFGFUN() [54/76]

CFGFUN ( for_window ,
const char * command )

◆ CFGFUN() [55/76]

CFGFUN ( force_display_urgency_hint ,
const long duration_ms )

Definition at line 495 of file config_directives.c.

References config, and Config::workspace_urgency_timer.

◆ CFGFUN() [56/76]

CFGFUN ( force_focus_wrapping ,
const char * value )

Definition at line 473 of file config_directives.c.

References boolstr(), config, Config::focus_wrapping, FOCUS_WRAPPING_FORCE, and FOCUS_WRAPPING_ON.

Here is the call graph for this function:

◆ CFGFUN() [57/76]

CFGFUN ( force_xinerama ,
const char * value )

Definition at line 453 of file config_directives.c.

References boolstr(), config, and Config::force_xinerama.

Here is the call graph for this function:

◆ CFGFUN() [58/76]

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

Definition at line 317 of file config_directives.c.

References apply_gaps(), config, create_gaps_assignment(), Config::gaps, gaps_scope_to_mask(), and logical_px().

Here is the call graph for this function:

◆ CFGFUN() [59/76]

CFGFUN ( hide_edge_borders ,
const char * borders )

Definition at line 421 of file config_directives.c.

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

Here is the call graph for this function:

◆ CFGFUN() [60/76]

◆ CFGFUN() [61/76]

CFGFUN ( ipc_kill_timeout ,
const long timeout_ms )

Definition at line 701 of file config_directives.c.

References ipc_set_kill_timeout().

Here is the call graph for this function:

◆ CFGFUN() [62/76]

CFGFUN ( ipc_socket ,
const char * path )

Definition at line 571 of file config_directives.c.

References config, Config::ipc_socket_path, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [63/76]

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 190 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/76]

CFGFUN ( mouse_warping ,
const char * value )

◆ CFGFUN() [65/76]

CFGFUN ( no_focus )

Definition at line 684 of file config_directives.c.

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

Here is the call graph for this function:

◆ CFGFUN() [66/76]

CFGFUN ( popup_during_fullscreen ,
const char * value )

Definition at line 581 of file config_directives.c.

References config, and Config::popup_during_fullscreen.

◆ CFGFUN() [67/76]

CFGFUN ( restart_state ,
const char * path )

Definition at line 576 of file config_directives.c.

References config, Config::restart_state_path, and sstrdup().

Here is the call graph for this function:

◆ CFGFUN() [68/76]

CFGFUN ( show_marks ,
const char * value )

Definition at line 528 of file config_directives.c.

References boolstr(), config, and Config::show_marks.

Here is the call graph for this function:

◆ CFGFUN() [69/76]

CFGFUN ( smart_borders ,
const char * enable )

Definition at line 328 of file config_directives.c.

References boolstr(), config, ELOG, HEBM_NONE, HEBM_SMART, HEBM_SMART_NO_GAPS, and Config::hide_edge_borders.

Here is the call graph for this function:

◆ CFGFUN() [70/76]

CFGFUN ( smart_gaps ,
const char * enable )

Definition at line 342 of file config_directives.c.

References boolstr(), config, Config::smart_gaps, SMART_GAPS_INVERSE_OUTER, SMART_GAPS_OFF, and SMART_GAPS_ON.

Here is the call graph for this function:

◆ CFGFUN() [71/76]

◆ CFGFUN() [72/76]

CFGFUN ( tiling_drag_swap_modifier ,
const char * modifiers )

Definition at line 364 of file config_directives.c.

References config, event_state_from_str(), and Config::swap_modifier.

Here is the call graph for this function:

◆ CFGFUN() [73/76]

CFGFUN ( title_align ,
const char * alignment )

Definition at line 516 of file config_directives.c.

References config, and Config::title_align.

◆ CFGFUN() [74/76]

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

◆ CFGFUN() [75/76]

CFGFUN ( workspace_back_and_forth ,
const char * value )

Definition at line 486 of file config_directives.c.

References boolstr(), config, and Config::workspace_auto_back_and_forth.

Here is the call graph for this function:

◆ CFGFUN() [76/76]

CFGFUN ( workspace_layout ,
const char * layout )

Definition at line 378 of file config_directives.c.

References config, Config::default_layout, L_DEFAULT, L_STACKED, and L_TABBED.

◆ create_gaps_assignment()

static void create_gaps_assignment ( const char * workspace,
const gaps_mask_t mask,
const int pixels )
static

◆ dlog_padding()

static void dlog_padding ( void )
static

Definition at line 762 of file config_directives.c.

References current_bar, DLOG, Rect::height, Barconfig::padding, Rect::width, Rect::x, and Rect::y.

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

◆ 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 128 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(), CFGFUN(), and configure_binding().

◆ gaps_scope_to_mask()

static gaps_mask_t gaps_scope_to_mask ( const char * scope)
static

Definition at line 295 of file config_directives.c.

References ELOG, GAPS_BOTTOM, GAPS_HORIZONTAL, GAPS_INNER, GAPS_LEFT, GAPS_OUTER, GAPS_RIGHT, GAPS_TOP, and GAPS_VERTICAL.

Referenced by CFGFUN().

Variable Documentation

◆ criteria_next_state

int criteria_next_state
static

Definition at line 92 of file config_directives.c.

Referenced by CFGFUN(), and CFGFUN().

◆ current_bar

◆ current_mode

char* current_mode
static

Definition at line 187 of file config_directives.c.

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

◆ current_mode_pango_markup

bool current_mode_pango_markup
static

Definition at line 188 of file config_directives.c.

Referenced by CFGFUN(), and CFGFUN().

◆ current_workspace

char* current_workspace = NULL
static

Definition at line 532 of file config_directives.c.

Referenced by CFGFUN().