4 * i3 - an improved dynamic tiling window manager
6 * © 2009 Michael Stapelberg and contributors
8 * See file LICENSE for license information.
10 * include/config.h: Contains all structs/variables for
11 * the configurable part of i3
22 typedef struct Config Config;
24 extern bool config_use_lexer;
25 extern SLIST_HEAD(modes_head, Mode) modes;
28 * Part of the struct Config. It makes sense to group colors for background,
29 * border and text as every element in i3 has them (window decorations, bar).
39 * Holds a user-assigned variable for parsing the configuration file. The key
40 * is replaced by value in every following line of the file.
48 SLIST_ENTRY(Variable) variables;
52 * The configuration file can contain multiple sets of bindings. Apart from the
53 * default set (name == "default"), you can specify other sets and change the
54 * currently active set of bindings by using the "mode <name>" command.
59 struct bindings_head *bindings;
61 SLIST_ENTRY(Mode) modes;
65 * Holds part of the configuration (the part which is not already in dedicated
66 * structures in include/data.h).
73 const char *ipc_socket_path;
76 int container_stack_limit;
77 int container_stack_limit_value;
79 const char *default_border;
81 /** The modifier which needs to be pressed in combination with your mouse
82 * buttons to do things with floating windows (move, resize) */
83 uint32_t floating_modifier;
85 /* Color codes are stored here */
86 struct config_client {
87 struct Colortriple focused;
88 struct Colortriple focused_inactive;
89 struct Colortriple unfocused;
90 struct Colortriple urgent;
93 struct Colortriple focused;
94 struct Colortriple unfocused;
95 struct Colortriple urgent;
100 * Reads the configuration from ~/.i3/config or /etc/i3/config if not found.
102 * If you specify override_configpath, only this path is used to look for a
103 * configuration file.
106 void load_configuration(xcb_connection_t *conn, const char *override_configfile, bool reload);
109 * Ungrabs all keys, to be called before re-grabbing the keys because of a
110 * mapping_notify event or a configuration file reload
113 void ungrab_all_keys(xcb_connection_t *conn);
116 * Grab the bound keys (tell X to send us keypress events for those keycodes)
119 void grab_all_keys(xcb_connection_t *conn);
122 * Switches the key bindings to the given mode, if the mode exists
125 void switch_mode(xcb_connection_t *conn, const char *new_mode);