|
i3
|
#include "config_parser.h"

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. More... | |
| #define | CFGFUN(name,...) void cfg_##name(I3_CFG, ##__VA_ARGS__) |
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. More... | |
| CFGFUN (criteria_init, int _state) | |
| CFGFUN (criteria_add, const char *ctype, const char *cvalue) | |
| CFGFUN (criteria_pop_state) | |
| 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 (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 (force_focus_wrapping, const char *value) | |
| CFGFUN (force_xinerama, 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 (show_marks, const char *value) | |
| CFGFUN (hide_edge_borders, const char *borders) | |
| CFGFUN (assign, const char *workspace) | |
| CFGFUN (no_focus) | |
| CFGFUN (ipc_socket, const char *path) | |
| CFGFUN (restart_state, const char *path) | |
| CFGFUN (popup_during_fullscreen, const char *value) | |
| CFGFUN (color, const char *colorclass, 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 (new_window, 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 *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 *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_modifier, const char *modifier) | |
| CFGFUN (bar_wheel_up_cmd, const char *command) | |
| CFGFUN (bar_wheel_down_cmd, const char *command) | |
| CFGFUN (bar_bindsym, const char *button, 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_binding_mode_indicator, const char *value) | |
| CFGFUN (bar_workspace_buttons, const char *value) | |
| CFGFUN (bar_strip_workspace_numbers, const char *value) | |
| CFGFUN (bar_start) | |
| CFGFUN (bar_finish) | |
| #define CFGFUN | ( | name, | |
| ... | |||
| ) | void cfg_##name(I3_CFG, ##__VA_ARGS__) |
Definition at line 26 of file config_directives.h.
| #define I3_CFG Match *current_match, struct ConfigResultIR *result |
The beginning of the prototype for every cfg_ function.
Definition at line 21 of file config_directives.h.
| CFGFUN | ( | criteria_init | , |
| int | _state | ||
| ) |
Definition at line 28 of file config_directives.c.
References criteria_next_state, current_match, DLOG, match_free(), and match_init().

| CFGFUN | ( | criteria_add | , |
| const char * | ctype, | ||
| const char * | cvalue | ||
| ) |
Definition at line 45 of file config_directives.c.
References current_match, and match_parse_property().

| CFGFUN | ( | criteria_pop_state | ) |
Definition at line 36 of file config_directives.c.
References criteria_next_state.
| CFGFUN | ( | font | , |
| const char * | font | ||
| ) |
Definition at line 102 of file config_directives.c.
References config, Config::font, font_pattern, FREE, load_font(), set_font(), and sstrdup().

| CFGFUN | ( | exec | , |
| const char * | exectype, | ||
| const char * | no_startup_id, | ||
| const char * | command | ||
| ) |
Definition at line 137 of file config_directives.c.
References autostarts, autostarts_always, smalloc(), sstrdup(), and TAILQ_INSERT_TAIL.

| CFGFUN | ( | for_window | , |
| const char * | command | ||
| ) |
Definition at line 148 of file config_directives.c.
References assignments, Assignment::command, current_match, Assignment::dest, DLOG, ELOG, Assignment::match, match_copy(), match_is_empty(), scalloc(), sstrdup(), TAILQ_INSERT_TAIL, and Assignment::type.

| CFGFUN | ( | floating_minimum_size | , |
| const long | width, | ||
| const long | height | ||
| ) |
Definition at line 161 of file config_directives.c.
References config, Config::floating_minimum_height, Config::floating_minimum_width, height, and width.
| CFGFUN | ( | floating_maximum_size | , |
| const long | width, | ||
| const long | height | ||
| ) |
Definition at line 166 of file config_directives.c.
References config, Config::floating_maximum_height, Config::floating_maximum_width, height, and width.
| CFGFUN | ( | default_orientation | , |
| const char * | orientation | ||
| ) |
Definition at line 175 of file config_directives.c.
References config, Config::default_orientation, HORIZ, NO_ORIENTATION, and VERT.
| CFGFUN | ( | workspace_layout | , |
| const char * | layout | ||
| ) |
Definition at line 184 of file config_directives.c.
References config, Config::default_layout, L_DEFAULT, L_STACKED, and L_TABBED.
| CFGFUN | ( | workspace_back_and_forth | , |
| const char * | value | ||
| ) |
Definition at line 259 of file config_directives.c.
References config, eval_boolstr(), and Config::workspace_auto_back_and_forth.

| CFGFUN | ( | focus_follows_mouse | , |
| const char * | value | ||
| ) |
Definition at line 240 of file config_directives.c.
References config, Config::disable_focus_follows_mouse, and eval_boolstr().

| CFGFUN | ( | mouse_warping | , |
| const char * | value | ||
| ) |
Definition at line 244 of file config_directives.c.
References config, Config::mouse_warping, POINTER_WARPING_NONE, and POINTER_WARPING_OUTPUT.
| CFGFUN | ( | force_focus_wrapping | , |
| const char * | value | ||
| ) |
Definition at line 255 of file config_directives.c.
References config, eval_boolstr(), and Config::force_focus_wrapping.

| CFGFUN | ( | force_xinerama | , |
| const char * | value | ||
| ) |
Definition at line 251 of file config_directives.c.
References config, eval_boolstr(), and Config::force_xinerama.

| CFGFUN | ( | fake_outputs | , |
| const char * | outputs | ||
| ) |
Definition at line 263 of file config_directives.c.
References config, Config::fake_outputs, and sstrdup().

| CFGFUN | ( | force_display_urgency_hint | , |
| const long | duration_ms | ||
| ) |
Definition at line 268 of file config_directives.c.
References config, and Config::workspace_urgency_timer.
| CFGFUN | ( | focus_on_window_activation | , |
| const char * | mode | ||
| ) |
Definition at line 272 of file config_directives.c.
References config, DLOG, ELOG, and Config::focus_on_window_activation.
| CFGFUN | ( | show_marks | , |
| const char * | value | ||
| ) |
Definition at line 289 of file config_directives.c.
References config, eval_boolstr(), and Config::show_marks.

| CFGFUN | ( | hide_edge_borders | , |
| const char * | borders | ||
| ) |
Definition at line 225 of file config_directives.c.
References ADJ_LEFT_SCREEN_EDGE, ADJ_LOWER_SCREEN_EDGE, ADJ_NONE, ADJ_RIGHT_SCREEN_EDGE, ADJ_UPPER_SCREEN_EDGE, config, eval_boolstr(), and Config::hide_edge_borders.

| CFGFUN | ( | assign | , |
| const char * | workspace | ||
| ) |
Definition at line 368 of file config_directives.c.
References assignments, current_match, Assignment::dest, DLOG, ELOG, Assignment::match, match_copy(), match_is_empty(), scalloc(), sstrdup(), TAILQ_INSERT_TAIL, Assignment::type, and Assignment::workspace.

| CFGFUN | ( | no_focus | ) |
Definition at line 381 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.

| CFGFUN | ( | ipc_socket | , |
| const char * | path | ||
| ) |
Definition at line 316 of file config_directives.c.
References config, Config::ipc_socket_path, and sstrdup().

| CFGFUN | ( | restart_state | , |
| const char * | path | ||
| ) |
Definition at line 321 of file config_directives.c.
References config, Config::restart_state_path, and sstrdup().

| CFGFUN | ( | popup_during_fullscreen | , |
| const char * | value | ||
| ) |
Definition at line 326 of file config_directives.c.
References config, and Config::popup_during_fullscreen.
| CFGFUN | ( | color | , |
| const char * | colorclass, | ||
| const char * | border, | ||
| const char * | background, | ||
| const char * | text, | ||
| const char * | indicator, | ||
| const char * | child_border | ||
| ) |
Definition at line 341 of file config_directives.c.
References APPLY_COLORS, and focused.
| CFGFUN | ( | color_single | , |
| const char * | colorclass, | ||
| const char * | color | ||
| ) |
Definition at line 336 of file config_directives.c.
References Config::config_client::background, Config::client, config, and draw_util_hex_to_color().

| CFGFUN | ( | floating_modifier | , |
| const char * | modifiers | ||
| ) |
Definition at line 171 of file config_directives.c.
References config, event_state_from_str(), and Config::floating_modifier.

| CFGFUN | ( | new_window | , |
| const char * | windowtype, | ||
| const char * | border, | ||
| const long | width | ||
| ) |
Definition at line 194 of file config_directives.c.
References BS_NONE, BS_NORMAL, BS_PIXEL, config, Config::default_border, Config::default_border_width, Config::default_floating_border, Config::default_floating_border_width, DLOG, logical_px(), and width.

| CFGFUN | ( | workspace | , |
| const char * | workspace, | ||
| const char * | output | ||
| ) |
Definition at line 293 of file config_directives.c.
References DLOG, ELOG, Workspace_Assignment::name, Workspace_Assignment::output, scalloc(), sstrdup(), TAILQ_FOREACH, TAILQ_INSERT_TAIL, and ws_assignments.

| CFGFUN | ( | binding | , |
| const char * | bindtype, | ||
| const char * | modifiers, | ||
| const char * | key, | ||
| const char * | release, | ||
| const char * | border, | ||
| const char * | whole_window, | ||
| const char * | command | ||
| ) |
Definition at line 111 of file config_directives.c.
References configure_binding(), and DEFAULT_BINDING_MODE.

| CFGFUN | ( | enter_mode | , |
| const char * | pango_markup, | ||
| const char * | mode | ||
| ) |
Definition at line 126 of file config_directives.c.
References current_mode, current_mode_pango_markup, DEFAULT_BINDING_MODE, DLOG, ELOG, FREE, and sstrdup().

| CFGFUN | ( | mode_binding | , |
| const char * | bindtype, | ||
| const char * | modifiers, | ||
| const char * | key, | ||
| const char * | release, | ||
| const char * | border, | ||
| const char * | whole_window, | ||
| const char * | command | ||
| ) |
Definition at line 122 of file config_directives.c.
References configure_binding(), current_mode, and current_mode_pango_markup.

| CFGFUN | ( | bar_font | , |
| const char * | font | ||
| ) |
Definition at line 400 of file config_directives.c.
References Barconfig::font, FREE, and sstrdup().

| CFGFUN | ( | bar_separator_symbol | , |
| const char * | separator | ||
| ) |
Definition at line 405 of file config_directives.c.
References FREE, Barconfig::separator_symbol, and sstrdup().

| CFGFUN | ( | bar_mode | , |
| const char * | mode | ||
| ) |
Definition at line 410 of file config_directives.c.
References Barconfig::mode.
| CFGFUN | ( | bar_hidden_state | , |
| const char * | hidden_state | ||
| ) |
Definition at line 414 of file config_directives.c.
References Barconfig::hidden_state.
| CFGFUN | ( | bar_id | , |
| const char * | bar_id | ||
| ) |
Definition at line 418 of file config_directives.c.
References Barconfig::id, and sstrdup().

| CFGFUN | ( | bar_output | , |
| const char * | output | ||
| ) |
Definition at line 422 of file config_directives.c.
References Barconfig::num_outputs, Barconfig::outputs, srealloc(), and sstrdup().

| CFGFUN | ( | bar_verbose | , |
| const char * | verbose | ||
| ) |
Definition at line 429 of file config_directives.c.
References eval_boolstr(), and Barconfig::verbose.

| CFGFUN | ( | bar_modifier | , |
| const char * | modifier | ||
| ) |
Definition at line 433 of file config_directives.c.
References Barconfig::modifier.
| CFGFUN | ( | bar_wheel_up_cmd | , |
| const char * | command | ||
| ) |
Definition at line 480 of file config_directives.c.
References bar_configure_binding(), and ELOG.

| CFGFUN | ( | bar_wheel_down_cmd | , |
| const char * | command | ||
| ) |
Definition at line 485 of file config_directives.c.
References bar_configure_binding(), and ELOG.

| CFGFUN | ( | bar_bindsym | , |
| const char * | button, | ||
| const char * | command | ||
| ) |
Definition at line 490 of file config_directives.c.
References bar_configure_binding().

| CFGFUN | ( | bar_position | , |
| const char * | position | ||
| ) |
Definition at line 494 of file config_directives.c.
References Barconfig::position.
| CFGFUN | ( | bar_i3bar_command | , |
| const char * | i3bar_command | ||
| ) |
Definition at line 498 of file config_directives.c.
References FREE, Barconfig::i3bar_command, and sstrdup().

| CFGFUN | ( | bar_color | , |
| const char * | colorclass, | ||
| const char * | border, | ||
| const char * | background, | ||
| const char * | text | ||
| ) |
Definition at line 503 of file config_directives.c.
References APPLY_COLORS.
| CFGFUN | ( | bar_socket_path | , |
| const char * | socket_path | ||
| ) |
Definition at line 529 of file config_directives.c.
References FREE, Barconfig::socket_path, and sstrdup().

| CFGFUN | ( | bar_tray_output | , |
| const char * | output | ||
| ) |
Definition at line 534 of file config_directives.c.
References tray_output_t::output, scalloc(), sstrdup(), and TAILQ_INSERT_TAIL.

| CFGFUN | ( | bar_tray_padding | , |
| const long | spacing_px | ||
| ) |
Definition at line 540 of file config_directives.c.
References Barconfig::tray_padding.
| CFGFUN | ( | bar_color_single | , |
| const char * | colorclass, | ||
| const char * | color | ||
| ) |
Definition at line 544 of file config_directives.c.
References Barconfig::bar_colors::background, Barconfig::colors, Barconfig::bar_colors::focused_background, Barconfig::bar_colors::focused_separator, Barconfig::bar_colors::focused_statusline, Barconfig::bar_colors::separator, sstrdup(), and Barconfig::bar_colors::statusline.

| CFGFUN | ( | bar_status_command | , |
| const char * | command | ||
| ) |
Definition at line 559 of file config_directives.c.
References FREE, sstrdup(), and Barconfig::status_command.

| CFGFUN | ( | bar_binding_mode_indicator | , |
| const char * | value | ||
| ) |
Definition at line 564 of file config_directives.c.
References eval_boolstr(), and Barconfig::hide_binding_mode_indicator.

| CFGFUN | ( | bar_workspace_buttons | , |
| const char * | value | ||
| ) |
Definition at line 568 of file config_directives.c.
References eval_boolstr(), and Barconfig::hide_workspace_buttons.

| CFGFUN | ( | bar_strip_workspace_numbers | , |
| const char * | value | ||
| ) |
Definition at line 572 of file config_directives.c.
References eval_boolstr(), and Barconfig::strip_workspace_numbers.

| CFGFUN | ( | bar_start | ) |
Definition at line 576 of file config_directives.c.
References Barconfig::modifier, scalloc(), TAILQ_INIT, and Barconfig::tray_padding.

| CFGFUN | ( | bar_finish | ) |
Definition at line 584 of file config_directives.c.
References barconfigs, config, DLOG, Barconfig::font, font_pattern, Barconfig::id, Config::number_barconfigs, sasprintf(), sstrdup(), and TAILQ_INSERT_TAIL.

| 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 66 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(), and configure_binding().
1.8.5