]> git.sur5r.net Git - i3/i3/blob - include/config_directives.h
Merge branch 'master' into next
[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-2012 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_parser.h"
13
14 /** The beginning of the prototype for every cfg_ function. */
15 #define I3_CFG Match *current_match, struct ConfigResult *result
16
17 /* Defines a configuration function, that is, anything that can be called by
18  * using 'call cfg_foo()' in parser-specs/.*.spec. Useful so that we don’t need
19  * to repeat the definition all the time. */
20 #define CFGFUN(name, ...) \
21     void cfg_ ## name (I3_CFG, ## __VA_ARGS__ )
22
23 /* The following functions are called by the config parser, see
24  * parser-specs/config.spec. They get the parsed parameters and store them in
25  * our data structures, e.g. cfg_font gets a font name and stores it in
26  * config.font.
27  *
28  * Since they are so similar, individual comments were omitted. */
29
30 CFGFUN(criteria_init, int _state);
31 CFGFUN(criteria_add, const char *ctype, const char *cvalue);
32 CFGFUN(criteria_pop_state);
33
34 CFGFUN(font, const char *font);
35 CFGFUN(exec, const char *exectype, const char *no_startup_id, const char *command);
36 CFGFUN(for_window, const char *command);
37 CFGFUN(floating_minimum_size, const long width, const long height);
38 CFGFUN(floating_maximum_size, const long width, const long height);
39 CFGFUN(default_orientation, const char *orientation);
40 CFGFUN(workspace_layout, const char *layout);
41 CFGFUN(workspace_back_and_forth, const char *value);
42 CFGFUN(focus_follows_mouse, const char *value);
43 CFGFUN(force_focus_wrapping, const char *value);
44 CFGFUN(force_xinerama, const char *value);
45 CFGFUN(fake_outputs, const char *outputs);
46 CFGFUN(force_display_urgency_hint, const long duration_ms);
47 CFGFUN(hide_edge_borders, const char *borders);
48 CFGFUN(assign, const char *workspace);
49 CFGFUN(ipc_socket, const char *path);
50 CFGFUN(restart_state, const char *path);
51 CFGFUN(popup_during_fullscreen, const char *value);
52 CFGFUN(color, const char *colorclass, const char *border, const char *background, const char *text, const char *indicator);
53 CFGFUN(color_single, const char *colorclass, const char *color);
54 CFGFUN(floating_modifier, const char *modifiers);
55 CFGFUN(new_window, const char *windowtype, const char *border, const long width);
56 CFGFUN(workspace, const char *workspace, const char *output);
57 CFGFUN(binding, const char *bindtype, const char *modifiers, const char *key, const char *release, const char *command);
58
59 CFGFUN(enter_mode, const char *mode);
60 CFGFUN(mode_binding, const char *bindtype, const char *modifiers, const char *key, const char *release, const char *command);
61
62 CFGFUN(bar_font, const char *font);
63 CFGFUN(bar_mode, const char *mode);
64 CFGFUN(bar_hidden_state, const char *hidden_state);
65 CFGFUN(bar_id, const char *bar_id);
66 CFGFUN(bar_output, const char *output);
67 CFGFUN(bar_verbose, const char *verbose);
68 CFGFUN(bar_modifier, const char *modifier);
69 CFGFUN(bar_position, const char *position);
70 CFGFUN(bar_i3bar_command, const char *i3bar_command);
71 CFGFUN(bar_color, const char *colorclass, const char *border, const char *background, const char *text);
72 CFGFUN(bar_socket_path, const char *socket_path);
73 CFGFUN(bar_tray_output, const char *output);
74 CFGFUN(bar_color_single, const char *colorclass, const char *color);
75 CFGFUN(bar_status_command, const char *command);
76 CFGFUN(bar_binding_mode_indicator, const char *value);
77 CFGFUN(bar_workspace_buttons, const char *value);
78 CFGFUN(bar_finish);