i3
config_directives.h
Go to the documentation of this file.
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * config_directives.h: all config storing functions (see config_parser.c)
8  *
9  */
10 #pragma once
11 
12 #include <config.h>
13 
14 #include "config_parser.h"
15 
21 
23 #define I3_CFG Match *current_match, struct ConfigResultIR *result
24 
25 /* Defines a configuration function, that is, anything that can be called by
26  * using 'call cfg_foo()' in parser-specs/.*.spec. Useful so that we don’t need
27  * to repeat the definition all the time. */
28 #define CFGFUN(name, ...) \
29  void cfg_##name(I3_CFG, ##__VA_ARGS__)
30 
31 /* The following functions are called by the config parser, see
32  * parser-specs/config.spec. They get the parsed parameters and store them in
33  * our data structures, e.g. cfg_font gets a font name and stores it in
34  * config.font.
35  *
36  * Since they are so similar, individual comments were omitted. */
37 
38 CFGFUN(criteria_init, int _state);
39 CFGFUN(criteria_add, const char *ctype, const char *cvalue);
40 CFGFUN(criteria_pop_state);
41 
42 CFGFUN(include, const char *pattern);
43 CFGFUN(font, const char *font);
44 CFGFUN(exec, const char *exectype, const char *no_startup_id, const char *command);
45 CFGFUN(for_window, const char *command);
46 CFGFUN(gaps, const char *workspace, const char *type, const long value);
47 CFGFUN(smart_borders, const char *enable);
48 CFGFUN(smart_gaps, const char *enable);
49 CFGFUN(floating_minimum_size, const long width, const long height);
50 CFGFUN(floating_maximum_size, const long width, const long height);
51 CFGFUN(default_orientation, const char *orientation);
52 CFGFUN(workspace_layout, const char *layout);
53 CFGFUN(workspace_back_and_forth, const char *value);
54 CFGFUN(focus_follows_mouse, const char *value);
55 CFGFUN(mouse_warping, const char *value);
56 CFGFUN(focus_wrapping, const char *value);
57 CFGFUN(force_focus_wrapping, const char *value);
58 CFGFUN(force_xinerama, const char *value);
59 CFGFUN(disable_randr15, const char *value);
60 CFGFUN(fake_outputs, const char *outputs);
61 CFGFUN(force_display_urgency_hint, const long duration_ms);
62 CFGFUN(focus_on_window_activation, const char *mode);
63 CFGFUN(title_align, const char *alignment);
64 CFGFUN(show_marks, const char *value);
65 CFGFUN(hide_edge_borders, const char *borders);
66 CFGFUN(assign_output, const char *output);
67 CFGFUN(assign, const char *workspace, bool is_number);
68 CFGFUN(no_focus);
69 CFGFUN(ipc_socket, const char *path);
70 CFGFUN(ipc_kill_timeout, const long timeout_ms);
71 CFGFUN(tiling_drag, const char *value);
72 CFGFUN(restart_state, const char *path);
73 CFGFUN(popup_during_fullscreen, const char *value);
74 CFGFUN(color, const char *colorclass, const char *labelqube, const char *border, const char *background, const char *text, const char *indicator, const char *child_border);
75 CFGFUN(color_single, const char *colorclass, const char *color);
76 CFGFUN(floating_modifier, const char *modifiers);
77 CFGFUN(default_border, const char *windowtype, const char *border, const long width);
78 CFGFUN(workspace, const char *workspace, const char *output);
79 CFGFUN(binding, const char *bindtype, const char *modifiers, const char *key, const char *release, const char *border, const char *whole_window, const char *exclude_titlebar, const char *command);
80 
81 CFGFUN(enter_mode, const char *pango_markup, const char *mode);
82 CFGFUN(mode_binding, const char *bindtype, const char *modifiers, const char *key, const char *release, const char *border, const char *whole_window, const char *exclude_titlebar, const char *command);
83 
84 CFGFUN(bar_font, const char *font);
85 CFGFUN(bar_separator_symbol, const char *separator);
86 CFGFUN(bar_mode, const char *mode);
87 CFGFUN(bar_hidden_state, const char *hidden_state);
88 CFGFUN(bar_id, const char *bar_id);
89 CFGFUN(bar_output, const char *output);
90 CFGFUN(bar_verbose, const char *verbose);
91 CFGFUN(bar_height, const long height);
92 CFGFUN(bar_padding_one, const long all);
93 CFGFUN(bar_padding_two, const long top_and_bottom, const long right_and_left);
94 CFGFUN(bar_padding_three, const long top, const long right_and_left, const long bottom);
95 CFGFUN(bar_padding_four, const long top, const long right, const long bottom, const long left);
96 CFGFUN(bar_modifier, const char *modifiers);
97 CFGFUN(bar_wheel_up_cmd, const char *command);
98 CFGFUN(bar_wheel_down_cmd, const char *command);
99 CFGFUN(bar_bindsym, const char *button, const char *release, const char *command);
100 CFGFUN(bar_position, const char *position);
101 CFGFUN(bar_i3bar_command, const char *i3bar_command);
102 CFGFUN(bar_color, const char *colorclass, const char *border, const char *background, const char *text);
103 CFGFUN(bar_socket_path, const char *socket_path);
104 CFGFUN(bar_tray_output, const char *output);
105 CFGFUN(bar_tray_padding, const long spacing_px);
106 CFGFUN(bar_color_single, const char *colorclass, const char *color);
107 CFGFUN(bar_status_command, const char *command);
108 CFGFUN(bar_binding_mode_indicator, const char *value);
109 CFGFUN(bar_workspace_buttons, const char *value);
110 CFGFUN(bar_workspace_min_width, const long width);
111 CFGFUN(bar_strip_workspace_numbers, const char *value);
112 CFGFUN(bar_strip_workspace_name, const char *value);
113 CFGFUN(bar_start);
114 CFGFUN(bar_finish);
#define CFGFUN(name,...)
void tiling_drag(Con *con, xcb_button_press_event_t *event, bool use_threshold)
Initiates a mouse drag operation on a tiled window.
Definition: tiling_drag.c:304
void workspace_back_and_forth(void)
Focuses the previously focused workspace.
Definition: workspace.c:809
bool force_xinerama
Definition: main.c:107
uint32_t i3_event_state_mask_t
The lower 16 bits contain a xcb_key_but_mask_t, the higher 16 bits contain an i3_xkb_group_mask_t.
Definition: data.h:140
i3_event_state_mask_t event_state_from_str(const char *str)
A utility function to convert a string containing the group and modifiers to the corresponding bit ma...
struct outputs_head outputs
Definition: randr.c:22
static bool verbose
Definition: log.c:36