i3
|
Go to the source code of this file.
Macros | |
#define | INIT_COLOR(x, cborder, cbackground, ctext, cindicator) |
Functions | |
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. | |
static void | free_configuration (void) |
bool | load_configuration (const char *override_configpath, config_load_t load_type) |
(Re-)loads the configuration file (sets useful defaults before). |
Variables | |
char * | current_configpath = NULL |
Config | config |
struct modes_head | modes |
struct barconfig_head | barconfigs = TAILQ_HEAD_INITIALIZER(barconfigs) |
struct includedfiles_head | included_files = TAILQ_HEAD_INITIALIZER(included_files) |
#define INIT_COLOR | ( | x, | |
cborder, | |||
cbackground, | |||
ctext, | |||
cindicator ) |
Referenced by load_configuration().
|
static |
Definition at line 34 of file config.c.
References Assignment::A_COMMAND, Assignment::A_TO_OUTPUT, Assignment::A_TO_WORKSPACE, Assignment::A_TO_WORKSPACE_NUMBER, Barconfig::bar_colors::active_workspace_bg, Barconfig::bar_colors::active_workspace_border, Barconfig::bar_colors::active_workspace_text, all_cons, assignments, Barconfig::bar_colors::background, barconfigs, binding_free(), Barconfig::bar_colors::binding_mode_bg, Barconfig::bar_colors::binding_mode_border, Barconfig::bar_colors::binding_mode_text, bindings, Mode::bindings, Barconfig::colors, Assignment::command, Barbinding::command, config, conn, Con::deco_render_params, Assignment::dest, Barconfig::bar_colors::focused_background, Barconfig::bar_colors::focused_separator, Barconfig::bar_colors::focused_statusline, Barconfig::bar_colors::focused_workspace_bg, Barconfig::bar_colors::focused_workspace_border, Barconfig::bar_colors::focused_workspace_text, Barconfig::font, FREE, free_font(), Barconfig::i3bar_command, Barconfig::id, Barconfig::bar_colors::inactive_workspace_bg, Barconfig::bar_colors::inactive_workspace_border, Barconfig::bar_colors::inactive_workspace_text, Assignment::match, match_free(), modes, Mode::name, Workspace_Assignment::name, Window::nr_assignments, Barconfig::num_outputs, Assignment::output, tray_output_t::output, Workspace_Assignment::output, Barconfig::outputs, Window::ran_assignments, Barconfig::bar_colors::separator, SLIST_EMPTY, SLIST_FIRST, SLIST_REMOVE, Barconfig::socket_path, Barconfig::status_command, Barconfig::bar_colors::statusline, switch_mode(), TAILQ_EMPTY, TAILQ_FIRST, TAILQ_FOREACH, TAILQ_REMOVE, Assignment::type, ungrab_all_keys(), Barconfig::bar_colors::urgent_workspace_bg, Barconfig::bar_colors::urgent_workspace_border, Barconfig::bar_colors::urgent_workspace_text, Con::window, Assignment::workspace, Barconfig::workspace_command, and ws_assignments.
Referenced by load_configuration().
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().
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().
struct barconfig_head barconfigs = TAILQ_HEAD_INITIALIZER(barconfigs) |
Definition at line 21 of file config.c.
Referenced by CFGFUN(), cmd_bar_hidden_state(), cmd_bar_mode(), cmd_reload(), free_configuration(), IPC_HANDLER(), load_configuration(), main(), and TAILQ_HEAD().
Config config |
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().
char* current_configpath = NULL |
Definition at line 18 of file config.c.
Referenced by IPC_HANDLER(), load_configuration(), translate_keysyms(), and x_set_i3_atoms().
struct includedfiles_head included_files = TAILQ_HEAD_INITIALIZER(included_files) |
Definition at line 22 of file config.c.
Referenced by CFGFUN(), display_running_version(), IPC_HANDLER(), IPC_HANDLER(), load_configuration(), TAILQ_HEAD(), and version_string().
struct modes_head modes |
Definition at line 20 of file config.c.
Referenced by CFGFUN(), free_configuration(), IPC_HANDLER(), load_configuration(), mode_from_name(), reorder_bindings(), Mode::SLIST_ENTRY(), SLIST_HEAD(), and switch_mode().