13 #include <xkbcommon/xkbcommon.h> 27 DLOG(
"Ungrabbing all keys\n");
28 xcb_ungrab_key(
conn, XCB_GRAB_ANY,
root, XCB_BUTTON_MASK_ANY);
193 #define INIT_COLOR(x, cborder, cbackground, ctext, cindicator) \ 195 x.border = draw_util_hex_to_color(cborder); \ 196 x.background = draw_util_hex_to_color(cbackground); \ 197 x.text = draw_util_hex_to_color(ctext); \ 198 x.indicator = draw_util_hex_to_color(cindicator); \ 199 x.child_border = draw_util_hex_to_color(cbackground); \ 234 die(
"Unable to find the configuration file (looked at " 235 "$XDG_CONFIG_HOME/i3/config, ~/.i3/config, $XDG_CONFIG_DIRS/i3/config " 236 "and " SYSCONFDIR
"/i3/config)");
242 ELOG(
"You did not specify required configuration option \"font\"\n");
struct Barconfig::bar_colors colors
char * i3bar_command
Command that should be run to execute i3bar, give a full path if i3bar is not in your $PATH...
char * focused_workspace_text
struct Config::config_client client
Match match
the criteria to check if a window matches
Defines a mouse command to be executed instead of the default behavior when clicking on the non-statu...
Assignment ** ran_assignments
uint32_t nr_assignments
Pointers to the Assignments which were already ran for this Window (assignments run only once) ...
int logical_px(const int logical)
Convert a logical amount of pixels (e.g.
void update_barconfig(void)
Sends the current bar configuration as an event to all barconfig_update listeners.
char ** outputs
Outputs on which this bar should show up on.
struct barconfig_head barconfigs
char * id
Automatically generated ID for this bar config.
char * focused_workspace_border
#define SLIST_REMOVE(head, elm, type, field)
#define TAILQ_EMPTY(head)
char * inactive_workspace_border
void * scalloc(size_t num, size_t size)
Safe-wrapper around calloc which exits if malloc returns NULL (meaning that there is no more memory a...
xcb_connection_t * conn
XCB connection and root screen.
char * restart_state_path
void match_free(Match *match)
Frees the given match.
void switch_mode(const char *new_mode)
Switches the key bindings to the given mode, if the mode exists.
#define SLIST_EMPTY(head)
#define INIT_COLOR(x, cborder, cbackground, ctext, cindicator)
struct deco_render_params * deco_render_params
Cache for the decoration rendering.
bool load_configuration(const char *override_configpath, config_load_t load_type)
(Re-)loads the configuration file (sets useful defaults before).
struct bindings_head * bindings
void free_font(void)
Frees the resources taken by the current font.
char * status_command
Command that should be run to get a statusline, for example 'i3status'.
int num_outputs
Number of outputs in the outputs array.
struct assignments_head assignments
float workspace_urgency_timer
By default, urgency is cleared immediately when switching to another workspace leads to focusing the ...
char * binding_mode_border
struct Colortriple focused
char * fake_outputs
Overwrites output detection (for testing), see src/fake_outputs.c.
char * active_workspace_bg
union Assignment::@19 dest
destination workspace/command/output, depending on the type
void ipc_send_barconfig_update_event(Barconfig *barconfig)
For the barconfig update events, we send the serialized barconfig.
#define TAILQ_REMOVE(head, elm, field)
void grab_all_keys(xcb_connection_t *conn)
Grab the bound keys (tell X to send us keypress events for those keycodes)
focus_wrapping_t focus_wrapping
When focus wrapping is enabled (the default), attempting to move focus past the edge of the screen (i...
static void free_configuration(void)
A 'Con' represents everything from the X11 root window down to a single X11 window.
#define TAILQ_FIRST(head)
Holds part of the configuration (the part which is not already in dedicated structures in include/dat...
#define SLIST_FIRST(head)
enum Font::@23 type
The type of font.
struct Colortriple urgent
int default_floating_border_width
char * current_configpath
Stores which workspace (by name or number) goes to which output.
char * sstrdup(const char *str)
Safe-wrapper around strdup which exits if malloc returns NULL (meaning that there is no more memory a...
enum Assignment::@18 type
type of this assignment:
char * font
Font specification for all text rendered on the bar.
void binding_free(Binding *bind)
Frees the binding.
char * command
The command which is to be executed for this button.
border_style_t default_floating_border
The default border style for new floating windows.
char * inactive_workspace_text
An Assignment makes specific windows go to a specific workspace/output or run a command for that wind...
char * focused_statusline
char * get_config_path(const char *override_configpath, bool use_system_paths)
Get the path of the first configuration file found.
Holds a keybinding, consisting of a keycode combined with modifiers and the command which is executed...
struct Colortriple focused_inactive
char * urgent_workspace_border
color_t draw_util_hex_to_color(const char *color)
Parses the given color in hex format to an internal color representation.
struct all_cons_head all_cons
struct Colortriple focused
char * inactive_workspace_bg
struct Colortriple unfocused
char * urgent_workspace_text
void x_deco_recurse(Con *con)
Recursively calls x_draw_decoration.
The configuration file can contain multiple sets of bindings.
bool show_marks
Specifies whether or not marks should be displayed in the window decoration.
i3Font load_font(const char *pattern, const bool fallback)
Loads a font for usage, also getting its height.
char * focused_workspace_bg
int default_orientation
Default orientation for new containers.
bool parse_file(const char *f, bool use_nagbar)
Parses the given file by first replacing the variables, then calling parse_config and launching i3-na...
void translate_keysyms(void)
Translates keysymbols to keycodes for all bindings which use keysyms.
void regrab_all_buttons(xcb_connection_t *conn)
Release the button grabs on all managed windows and regrab them, reevaluating which buttons need to b...
struct Colortriple urgent
border_style_t default_border
The default border style for new windows.
struct ws_assignments_head ws_assignments
#define SLIST_INSERT_HEAD(head, elm, field)
struct Colortriple placeholder
struct Config::config_bar bar
char * focused_background
char * active_workspace_text
void set_font(i3Font *font)
Defines the font to be used for the forthcoming calls.
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 con...
char * active_workspace_border
struct Colortriple unfocused
Holds the status bar configuration (i3bar).
#define TAILQ_HEAD_INITIALIZER(head)
#define TAILQ_FOREACH(var, head, field)
struct bindings_head * bindings
char * urgent_workspace_bg
char * socket_path
Path to the i3 IPC socket.