|
i3
|


Go to the source code of this file.
Data Structures | |
| struct | context |
| Used during the config file lexing/parsing to keep the state of the lexer in order to provide useful error messages in yyerror(). More... | |
| struct | Colortriple |
| Part of the struct Config. More... | |
| struct | Variable |
| Holds a user-assigned variable for parsing the configuration file. More... | |
| struct | Mode |
| The configuration file can contain multiple sets of bindings. More... | |
| struct | Config |
| Holds part of the configuration (the part which is not already in dedicated structures in include/data.h). More... | |
| struct | Config::config_client |
| struct | Config::config_bar |
| struct | Barconfig |
| Holds the status bar configuration (i3bar). More... | |
| struct | Barconfig::bar_colors |
Typedefs | |
| typedef struct Config | Config |
| typedef struct Barconfig | Barconfig |
Functions | |
| SLIST_HEAD (modes_head, Mode) modes | |
| TAILQ_HEAD (barconfig_head, Barconfig) barconfigs | |
| bool | parse_configuration (const char *override_configpath, bool use_nagbar) |
| Finds the configuration file to use (either the one specified by override_configpath), the user’s one or the system default) and calls parse_file(). More... | |
| void | load_configuration (xcb_connection_t *conn, const char *override_configfile, bool reload) |
| Reads the configuration from ~/.i3/config or /etc/i3/config if not found. More... | |
| void | ungrab_all_keys (xcb_connection_t *conn) |
| Ungrabs all keys, to be called before re-grabbing the keys because of a mapping_notify event or a configuration file reload. More... | |
| void | update_barconfig () |
| Sends the current bar configuration as an event to all barconfig_update listeners. More... | |
| void | kill_configerror_nagbar (bool wait_for_it) |
| Kills the configerror i3-nagbar process, if any. More... | |
Variables | |
| char * | current_configpath |
| Config | config |
| void kill_configerror_nagbar | ( | bool | wait_for_it | ) |
Kills the configerror i3-nagbar process, if any.
Called when reloading/restarting.
If wait_for_it is set (restarting), this function will waitpid(), otherwise, ev is assumed to handle it (reloading).
| void load_configuration | ( | xcb_connection_t * | conn, |
| const char * | override_configfile, | ||
| bool | reload | ||
| ) |
Reads the configuration from ~/.i3/config or /etc/i3/config if not found.
If you specify override_configpath, only this path is used to look for a configuration file.
Definition at line 134 of file config.c.
References Assignment::A_COMMAND, Assignment::A_TO_WORKSPACE, Barconfig::bar_colors::active_workspace_bg, Barconfig::bar_colors::active_workspace_border, Barconfig::bar_colors::active_workspace_text, all_cons, assignments, Config::config_client::background, Barconfig::bar_colors::background, Config::bar, barconfigs, binding_free(), bindings, Mode::bindings, BS_NORMAL, Config::client, Barconfig::colors, Assignment::command, croot, Con::deco_render_params, Config::default_border, Config::default_border_width, Config::default_floating_border, Config::default_floating_border_width, Config::default_orientation, Assignment::dest, ELOG, Config::config_bar::focused, Config::config_client::focused, Config::config_client::focused_inactive, Barconfig::bar_colors::focused_workspace_bg, Barconfig::bar_colors::focused_workspace_border, Barconfig::bar_colors::focused_workspace_text, Config::font, Barconfig::font, FREE, free_font(), get_colorpixel(), grab_all_keys(), Barconfig::i3bar_command, Barconfig::id, Barconfig::bar_colors::inactive_workspace_bg, Barconfig::bar_colors::inactive_workspace_border, Barconfig::bar_colors::inactive_workspace_text, INIT_COLOR, load_font(), logical_px(), Assignment::match, match_free(), modes, Mode::name, NO_ORIENTATION, Barconfig::num_outputs, Barconfig::outputs, parse_configuration(), Config::config_client::placeholder, predict_text_width(), scalloc(), set_font(), SLIST_EMPTY, SLIST_FIRST, SLIST_INIT, SLIST_INSERT_HEAD, SLIST_REMOVE, Barconfig::socket_path, sstrdup(), Barconfig::status_command, Barconfig::bar_colors::statusline, TAILQ_EMPTY, TAILQ_FIRST, TAILQ_FOREACH, TAILQ_INIT, TAILQ_REMOVE, translate_keysyms(), Barconfig::tray_output, Font::type, Assignment::type, Config::config_client::unfocused, Config::config_bar::unfocused, ungrab_all_keys(), Config::config_client::urgent, Config::config_bar::urgent, Barconfig::bar_colors::urgent_workspace_bg, Barconfig::bar_colors::urgent_workspace_border, Barconfig::bar_colors::urgent_workspace_text, Assignment::workspace, Config::workspace_urgency_timer, and x_deco_recurse().
Referenced by cmd_reload(), and main().

| bool parse_configuration | ( | const char * | override_configpath, |
| bool | use_nagbar | ||
| ) |
Finds the configuration file to use (either the one specified by override_configpath), the user’s one or the system default) and calls parse_file().
If you specify override_configpath, only this path is used to look for a configuration file.
If use_nagbar is false, don't try to start i3-nagbar but log the errors to stdout/stderr instead.
Definition at line 115 of file config.c.
References bindings, current_configpath, FREE, get_config_path(), LOG, parse_file(), scalloc(), and TAILQ_INIT.
Referenced by load_configuration(), and main().

| SLIST_HEAD | ( | modes_head | , |
| Mode | |||
| ) |
| TAILQ_HEAD | ( | barconfig_head | , |
| Barconfig | |||
| ) |
| void ungrab_all_keys | ( | xcb_connection_t * | conn | ) |
Ungrabs all keys, to be called before re-grabbing the keys because of a mapping_notify event or a configuration file reload.
Definition at line 26 of file config.c.
Referenced by handle_event(), handle_mapping_notify(), load_configuration(), and switch_mode().
| void update_barconfig | ( | ) |
Sends the current bar configuration as an event to all barconfig_update listeners.
Definition at line 35 of file config.c.
References barconfigs, ipc_send_barconfig_update_event(), and TAILQ_FOREACH.
Referenced by cmd_bar(), and cmd_reload().

| Config config |
Definition at line 17 of file config.c.
Referenced by _tree_next(), _workspace_apply_default_orientation(), _workspace_show(), CFGFUN(), check_crossing_screen_boundary(), cmd_exit(), cmd_restart(), con_border_style_rect(), con_new_skeleton(), create_workspace_on_output(), floating_check_size(), floating_enable(), handle_button_press(), handle_client_message(), handle_enter_notify(), handle_motion_notify(), IPC_HANDLER(), main(), manage_window(), maybe_auto_back_and_forth_workspace(), maybe_back_and_forth(), open_popups(), output_change_mode(), parse_file(), render_deco_height(), resize_graphical_handler(), run_binding(), store_restart_layout(), workspace_get(), x_draw_decoration(), and x_set_warp_to().
| char* current_configpath |
Definition at line 16 of file config.c.
Referenced by parse_configuration(), and x_set_i3_atoms().
1.8.9.1