]> git.sur5r.net Git - i3/i3/blob - include/config_directives.h
Merge branch 'release-4.16.1'
[i3/i3] / include / config_directives.h
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
16 /**
17  * A utility function to convert a string containing the group and modifiers to
18  * the corresponding bit mask.
19  */
20 i3_event_state_mask_t event_state_from_str(const char *str);
21
22 /** The beginning of the prototype for every cfg_ function. */
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(font, const char *font);
43 CFGFUN(exec, const char *exectype, const char *no_startup_id, const char *command);
44 CFGFUN(for_window, const char *command);
45 CFGFUN(floating_minimum_size, const long width, const long height);
46 CFGFUN(floating_maximum_size, const long width, const long height);
47 CFGFUN(default_orientation, const char *orientation);
48 CFGFUN(workspace_layout, const char *layout);
49 CFGFUN(workspace_back_and_forth, const char *value);
50 CFGFUN(focus_follows_mouse, const char *value);
51 CFGFUN(mouse_warping, const char *value);
52 CFGFUN(focus_wrapping, const char *value);
53 CFGFUN(force_focus_wrapping, const char *value);
54 CFGFUN(force_xinerama, const char *value);
55 CFGFUN(disable_randr15, const char *value);
56 CFGFUN(fake_outputs, const char *outputs);
57 CFGFUN(force_display_urgency_hint, const long duration_ms);
58 CFGFUN(focus_on_window_activation, const char *mode);
59 CFGFUN(title_align, const char *alignment);
60 CFGFUN(show_marks, const char *value);
61 CFGFUN(hide_edge_borders, const char *borders);
62 CFGFUN(assign_output, const char *output);
63 CFGFUN(assign, const char *workspace, bool is_number);
64 CFGFUN(no_focus);
65 CFGFUN(ipc_socket, const char *path);
66 CFGFUN(ipc_kill_timeout, const long timeout_ms);
67 CFGFUN(restart_state, const char *path);
68 CFGFUN(popup_during_fullscreen, const char *value);
69 CFGFUN(color, const char *colorclass, const char *border, const char *background, const char *text, const char *indicator, const char *child_border);
70 CFGFUN(color_single, const char *colorclass, const char *color);
71 CFGFUN(floating_modifier, const char *modifiers);
72 CFGFUN(default_border, const char *windowtype, const char *border, const long width);
73 CFGFUN(workspace, const char *workspace, const char *output);
74 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);
75
76 CFGFUN(enter_mode, const char *pango_markup, const char *mode);
77 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);
78
79 CFGFUN(bar_font, const char *font);
80 CFGFUN(bar_separator_symbol, const char *separator);
81 CFGFUN(bar_mode, const char *mode);
82 CFGFUN(bar_hidden_state, const char *hidden_state);
83 CFGFUN(bar_id, const char *bar_id);
84 CFGFUN(bar_output, const char *output);
85 CFGFUN(bar_verbose, const char *verbose);
86 CFGFUN(bar_modifier, const char *modifiers);
87 CFGFUN(bar_wheel_up_cmd, const char *command);
88 CFGFUN(bar_wheel_down_cmd, const char *command);
89 CFGFUN(bar_bindsym, const char *button, const char *release, const char *command);
90 CFGFUN(bar_position, const char *position);
91 CFGFUN(bar_i3bar_command, const char *i3bar_command);
92 CFGFUN(bar_color, const char *colorclass, const char *border, const char *background, const char *text);
93 CFGFUN(bar_socket_path, const char *socket_path);
94 CFGFUN(bar_tray_output, const char *output);
95 CFGFUN(bar_tray_padding, const long spacing_px);
96 CFGFUN(bar_color_single, const char *colorclass, const char *color);
97 CFGFUN(bar_status_command, const char *command);
98 CFGFUN(bar_binding_mode_indicator, const char *value);
99 CFGFUN(bar_workspace_buttons, const char *value);
100 CFGFUN(bar_strip_workspace_numbers, const char *value);
101 CFGFUN(bar_strip_workspace_name, const char *value);
102 CFGFUN(bar_start);
103 CFGFUN(bar_finish);