i3
|
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 (tiling_drag_swap_modifier, const char *modifiers) | |
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 (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) |
#define CFGFUN | ( | name, | |
... ) |
Definition at line 28 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 23 of file config_directives.h.
CFGFUN | ( | assign | , |
const char * | workspace, | ||
bool | is_number ) |
Definition at line 656 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, Assignment::workspace, and ws_name_to_number().
CFGFUN | ( | assign_output | , |
const char * | output ) |
Definition at line 633 of file config_directives.c.
References assignments, current_match, Assignment::dest, DLOG, ELOG, Assignment::match, match_copy(), match_is_empty(), Assignment::output, Workspace_Assignment::output, scalloc(), sstrdup(), TAILQ_INSERT_TAIL, and Assignment::type.
CFGFUN | ( | bar_binding_mode_indicator | , |
const char * | value ) |
Definition at line 924 of file config_directives.c.
References boolstr(), and current_bar.
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.
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 | ( | bar_color_single | , |
const char * | colorclass, | ||
const char * | color ) |
Definition at line 898 of file config_directives.c.
References current_bar, and sstrdup().
CFGFUN | ( | bar_finish | ) |
Definition at line 952 of file config_directives.c.
References barconfigs, config, current_bar, DLOG, sasprintf(), and TAILQ_INSERT_TAIL.
CFGFUN | ( | bar_font | , |
const char * | font ) |
Definition at line 725 of file config_directives.c.
References current_bar, FREE, and sstrdup().
CFGFUN | ( | bar_height | , |
const long | height ) |
Definition at line 758 of file config_directives.c.
References current_bar.
CFGFUN | ( | bar_hidden_state | , |
const char * | hidden_state ) |
Definition at line 739 of file config_directives.c.
References current_bar.
CFGFUN | ( | bar_i3bar_command | , |
const char * | i3bar_command ) |
Definition at line 852 of file config_directives.c.
References current_bar, FREE, and sstrdup().
CFGFUN | ( | bar_id | , |
const char * | bar_id ) |
Definition at line 743 of file config_directives.c.
References current_bar, and sstrdup().
CFGFUN | ( | bar_mode | , |
const char * | mode ) |
Definition at line 735 of file config_directives.c.
References current_bar.
CFGFUN | ( | bar_modifier | , |
const char * | modifiers ) |
Definition at line 802 of file config_directives.c.
References current_bar, and event_state_from_str().
CFGFUN | ( | bar_output | , |
const char * | output ) |
Definition at line 747 of file config_directives.c.
References current_bar, Workspace_Assignment::output, srealloc(), and sstrdup().
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, and dlog_padding().
CFGFUN | ( | bar_padding_one | , |
const long | all ) |
Definition at line 770 of file config_directives.c.
References current_bar, and dlog_padding().
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, and dlog_padding().
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, and dlog_padding().
CFGFUN | ( | bar_position | , |
const char * | position ) |
Definition at line 848 of file config_directives.c.
References current_bar.
CFGFUN | ( | bar_separator_symbol | , |
const char * | separator ) |
Definition at line 730 of file config_directives.c.
References current_bar, FREE, and sstrdup().
CFGFUN | ( | bar_socket_path | , |
const char * | socket_path ) |
Definition at line 883 of file config_directives.c.
References current_bar, FREE, and sstrdup().
CFGFUN | ( | bar_start | ) |
Definition at line 944 of file config_directives.c.
References current_bar, scalloc(), and TAILQ_INIT.
CFGFUN | ( | bar_status_command | , |
const char * | command ) |
Definition at line 914 of file config_directives.c.
References current_bar, FREE, and sstrdup().
CFGFUN | ( | bar_strip_workspace_name | , |
const char * | value ) |
Definition at line 940 of file config_directives.c.
References boolstr(), and current_bar.
CFGFUN | ( | bar_strip_workspace_numbers | , |
const char * | value ) |
Definition at line 936 of file config_directives.c.
References boolstr(), and current_bar.
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.
CFGFUN | ( | bar_tray_padding | , |
const long | spacing_px ) |
Definition at line 894 of file config_directives.c.
References current_bar.
CFGFUN | ( | bar_verbose | , |
const char * | verbose ) |
Definition at line 754 of file config_directives.c.
References boolstr(), current_bar, and verbose.
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.
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.
CFGFUN | ( | bar_workspace_buttons | , |
const char * | value ) |
Definition at line 928 of file config_directives.c.
References boolstr(), and current_bar.
CFGFUN | ( | bar_workspace_command | , |
const char * | command ) |
Definition at line 919 of file config_directives.c.
References current_bar, FREE, and sstrdup().
CFGFUN | ( | bar_workspace_min_width | , |
const long | width ) |
Definition at line 932 of file config_directives.c.
References current_bar.
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.
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 | ( | color_single | , |
const char * | colorclass, | ||
const char * | color ) |
Definition at line 593 of file config_directives.c.
References config, and draw_util_hex_to_color().
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().
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().
CFGFUN | ( | criteria_pop_state | ) |
Definition at line 107 of file config_directives.c.
References criteria_next_state.
CFGFUN | ( | default_border | , |
const char * | windowtype, | ||
const char * | border, | ||
const long | width ) |
Definition at line 389 of file config_directives.c.
References BS_NONE, BS_NORMAL, BS_PIXEL, config, DLOG, and logical_px().
CFGFUN | ( | default_orientation | , |
const char * | orientation ) |
Definition at line 368 of file config_directives.c.
References config, HORIZ, NO_ORIENTATION, and VERT.
CFGFUN | ( | disable_randr15 | , |
const char * | value ) |
Definition at line 457 of file config_directives.c.
References boolstr(), and config.
CFGFUN | ( | enter_mode | , |
const char * | pango_markup, | ||
const char * | mode ) |
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().
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.
CFGFUN | ( | fake_outputs | , |
const char * | outputs ) |
Definition at line 490 of file config_directives.c.
References config, outputs, and sstrdup().
CFGFUN | ( | floating_maximum_size | , |
const long | width, | ||
const long | height ) |
Definition at line 355 of file config_directives.c.
References config.
CFGFUN | ( | floating_minimum_size | , |
const long | width, | ||
const long | height ) |
Definition at line 350 of file config_directives.c.
References config.
CFGFUN | ( | floating_modifier | , |
const char * | modifiers ) |
Definition at line 360 of file config_directives.c.
References config, and event_state_from_str().
CFGFUN | ( | focus_follows_mouse | , |
const char * | value ) |
Definition at line 441 of file config_directives.c.
References boolstr(), and config.
CFGFUN | ( | focus_on_window_activation | , |
const char * | mode ) |
Definition at line 499 of file config_directives.c.
CFGFUN | ( | focus_wrapping | , |
const char * | value ) |
Definition at line 461 of file config_directives.c.
References boolstr(), config, FOCUS_WRAPPING_FORCE, FOCUS_WRAPPING_OFF, FOCUS_WRAPPING_ON, and FOCUS_WRAPPING_WORKSPACE.
CFGFUN | ( | font | , |
const char * | font ) |
Definition at line 174 of file config_directives.c.
References config, load_font(), and set_font().
CFGFUN | ( | for_window | , |
const char * | command ) |
Definition at line 229 of file config_directives.c.
References assignments, Assignment::command, Autostart::command, current_match, Assignment::dest, DLOG, ELOG, Assignment::match, match_copy(), match_is_empty(), scalloc(), sstrdup(), TAILQ_INSERT_TAIL, and Assignment::type.
CFGFUN | ( | force_display_urgency_hint | , |
const long | duration_ms ) |
Definition at line 495 of file config_directives.c.
References config.
CFGFUN | ( | force_focus_wrapping | , |
const char * | value ) |
Definition at line 473 of file config_directives.c.
References boolstr(), config, FOCUS_WRAPPING_FORCE, and FOCUS_WRAPPING_ON.
CFGFUN | ( | force_xinerama | , |
const char * | value ) |
Definition at line 453 of file config_directives.c.
References boolstr(), config, and force_xinerama.
CFGFUN | ( | gaps | , |
const char * | workspace, | ||
const char * | type, | ||
const long | value ) |
Definition at line 317 of file config_directives.c.
References apply_gaps(), config, create_gaps_assignment(), gaps_scope_to_mask(), and logical_px().
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, and HEBM_VERTICAL.
CFGFUN | ( | include | , |
const char * | pattern ) |
Definition at line 18 of file config_directives.c.
References ctx, DLOG, ELOG, FREE, included_files, LOG, parse_file(), PARSE_FILE_CONFIG_ERRORS, PARSE_FILE_FAILED, PARSE_FILE_SUCCESS, IncludedFile::path, IncludedFile::raw_contents, scalloc(), sstrdup(), TAILQ_FOREACH, TAILQ_INSERT_TAIL, TAILQ_REMOVE, and IncludedFile::variable_replaced_contents.
CFGFUN | ( | ipc_kill_timeout | , |
const long | timeout_ms ) |
Definition at line 701 of file config_directives.c.
References ipc_set_kill_timeout().
CFGFUN | ( | ipc_socket | , |
const char * | path ) |
Definition at line 571 of file config_directives.c.
References config, 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 * | exclude_titlebar, | ||
const char * | command ) |
Definition at line 190 of file config_directives.c.
References configure_binding(), current_mode, and current_mode_pango_markup.
CFGFUN | ( | mouse_warping | , |
const char * | value ) |
Definition at line 445 of file config_directives.c.
References config, POINTER_WARPING_NONE, and POINTER_WARPING_OUTPUT.
CFGFUN | ( | no_focus | ) |
Definition at line 684 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 | ( | popup_during_fullscreen | , |
const char * | value ) |
Definition at line 581 of file config_directives.c.
References config.
CFGFUN | ( | restart_state | , |
const char * | path ) |
Definition at line 576 of file config_directives.c.
References config, and sstrdup().
CFGFUN | ( | show_marks | , |
const char * | value ) |
Definition at line 528 of file config_directives.c.
References boolstr(), and config.
CFGFUN | ( | smart_borders | , |
const char * | enable ) |
Definition at line 328 of file config_directives.c.
References boolstr(), config, ELOG, HEBM_NONE, HEBM_SMART, and HEBM_SMART_NO_GAPS.
CFGFUN | ( | smart_gaps | , |
const char * | enable ) |
Definition at line 342 of file config_directives.c.
References boolstr(), config, SMART_GAPS_INVERSE_OUTER, SMART_GAPS_OFF, and SMART_GAPS_ON.
CFGFUN | ( | tiling_drag | , |
const char * | value ) |
Definition at line 705 of file config_directives.c.
References config, tiling_drag(), TILING_DRAG_MODIFIER, TILING_DRAG_MODIFIER_OR_TITLEBAR, TILING_DRAG_OFF, and TILING_DRAG_TITLEBAR.
CFGFUN | ( | tiling_drag_swap_modifier | , |
const char * | modifiers ) |
Definition at line 364 of file config_directives.c.
References config, and event_state_from_str().
CFGFUN | ( | title_align | , |
const char * | alignment ) |
Definition at line 516 of file config_directives.c.
References config.
CFGFUN | ( | workspace | , |
const char * | workspace, | ||
const char * | output ) |
Definition at line 534 of file config_directives.c.
References current_workspace, DLOG, ELOG, FREE, Workspace_Assignment::name, Workspace_Assignment::output, scalloc(), sstrdup(), TAILQ_FOREACH, TAILQ_INSERT_TAIL, and ws_assignments.
CFGFUN | ( | workspace_back_and_forth | , |
const char * | value ) |
Definition at line 486 of file config_directives.c.
References boolstr(), config, and workspace_back_and_forth().
CFGFUN | ( | workspace_layout | , |
const char * | layout ) |
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().