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 | IncludedFile |
List entry struct for an included 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 |
struct | Barbinding |
Defines a mouse command to be executed instead of the default behavior when clicking on the non-statusline part of i3bar. More... | |
struct | tray_output_t |
Typedefs | |
typedef struct IncludedFile | IncludedFile |
typedef struct Config | Config |
typedef struct Barconfig | Barconfig |
Enumerations | |
enum | config_load_t { C_VALIDATE , C_LOAD , C_RELOAD } |
Functions | |
SLIST_HEAD (modes_head, Mode) modes | |
TAILQ_HEAD (barconfig_head, Barconfig) barconfigs | |
TAILQ_HEAD (includedfiles_head, IncludedFile) included_files | |
bool | load_configuration (const char *override_configfile, config_load_t load_type) |
(Re-)loads the configuration file (sets useful defaults before). | |
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. |
Variables | |
char * | current_configpath |
char * | current_config |
Config | config |
typedef struct Barconfig Barconfig |
Definition at line 21 of file configuration.h.
typedef struct Config Config |
Definition at line 20 of file configuration.h.
typedef struct IncludedFile IncludedFile |
Definition at line 19 of file configuration.h.
enum config_load_t |
Enumerator | |
---|---|
C_VALIDATE | |
C_LOAD | |
C_RELOAD |
Definition at line 436 of file configuration.h.
bool load_configuration | ( | const char * | override_configfile, |
config_load_t | load_type ) |
(Re-)loads the configuration file (sets useful defaults before).
If you specify override_configpath, only this path is used to look for a configuration file.
load_type specifies the type of loading: C_VALIDATE is used to only verify the correctness of the config file (used with the flag -C). C_LOAD will load the config for normal use and display errors in the nagbar. C_RELOAD will also clear the previous config.
Definition at line 169 of file config.c.
References barconfigs, bindings, Mode::bindings, BS_NORMAL, C_RELOAD, C_VALIDATE, config, conn, ctx, current_binding_mode, current_configpath, die, draw_util_hex_to_color(), ELOG, extract_workspace_names_from_bindings(), FOCUS_WRAPPING_ON, Barconfig::font, FREE, free_configuration(), free_variables(), gaps_reapply_workspace_assignments(), get_config_path(), grab_all_keys(), included_files, INIT_COLOR, load_font(), LOG, logical_px(), modes, Mode::name, NO_ORIENTATION, parse_file(), IncludedFile::path, IncludedFile::raw_contents, regrab_all_buttons(), reorder_bindings(), scalloc(), set_font(), SLIST_INIT, SLIST_INSERT_HEAD, sstrdup(), TAILQ_EMPTY, TAILQ_FIRST, TAILQ_FOREACH, TAILQ_INIT, TAILQ_INSERT_TAIL, TAILQ_REMOVE, TILING_DRAG_MODIFIER, translate_keysyms(), tree_render(), and IncludedFile::variable_replaced_contents.
Referenced by cmd_reload(), and main().
|
extern |
References barconfigs.
|
extern |
References included_files.
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 29 of file config.c.
References conn, DLOG, and root.
Referenced by free_configuration(), handle_event(), handle_mapping_notify(), and switch_mode().
|
extern |
Definition at line 19 of file config.c.
Referenced by _workspace_apply_default_orientation(), border_width_from_style(), calculate_effective_gaps(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), check_crossing_screen_boundary(), cmd_restart(), con_border_style_rect_without_title(), con_new_skeleton(), create_drop_indicator(), create_workspace_on_output(), dump_bar_bindings(), dump_bar_config(), floating_check_size(), floating_enable(), free_configuration(), fullscreen_blocks_floating_render(), gaps_for_workspace(), gaps_update(), get_tree_next(), handle_client_message(), handle_configure_request(), handle_enter_notify(), handle_motion_notify(), i3_exit(), IPC_HANDLER(), load_configuration(), main(), manage_window(), maybe_auto_back_and_forth_workspace(), maybe_back_and_forth(), output_change_mode(), render_deco_height(), resize_graphical_handler(), route_click(), run_binding(), sighandler_draw_dialog(), sighandler_setup(), start_config_error_nagbar(), store_restart_layout(), tiling_drag(), update_placeholder_contents(), workspace_get(), workspace_show(), x_draw_decoration(), x_get_border_rectangles(), and x_set_warp_to().
|
extern |
|
extern |
Definition at line 18 of file config.c.
Referenced by IPC_HANDLER(), load_configuration(), translate_keysyms(), and x_set_i3_atoms().