X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fconfig_directives.h;h=f35666f3612000c21c4837c592a5b22261bf6d33;hb=d78fd8d91fa714dec5288322098dec6410927f9e;hp=e6b792c463906552711be4788393f21d83098e41;hpb=2314f107784196d8fc7ee500645dbdf548f91386;p=i3%2Fi3 diff --git a/include/config_directives.h b/include/config_directives.h index e6b792c4..f35666f3 100644 --- a/include/config_directives.h +++ b/include/config_directives.h @@ -2,23 +2,31 @@ * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager - * © 2009-2012 Michael Stapelberg and contributors (see also: LICENSE) + * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * * config_directives.h: all config storing functions (see config_parser.c) * */ #pragma once +#include + #include "config_parser.h" +/** + * A utility function to convert a string containing the group and modifiers to + * the corresponding bit mask. + */ +i3_event_state_mask_t event_state_from_str(const char *str); + /** The beginning of the prototype for every cfg_ function. */ -#define I3_CFG Match *current_match, struct ConfigResult *result +#define I3_CFG Match *current_match, struct ConfigResultIR *result /* Defines a configuration function, that is, anything that can be called by * using 'call cfg_foo()' in parser-specs/.*.spec. Useful so that we don’t need * to repeat the definition all the time. */ #define CFGFUN(name, ...) \ - void cfg_ ## name (I3_CFG, ## __VA_ARGS__ ) + void cfg_##name(I3_CFG, ##__VA_ARGS__) /* The following functions are called by the config parser, see * parser-specs/config.spec. They get the parsed parameters and store them in @@ -40,39 +48,51 @@ CFGFUN(default_orientation, const char *orientation); CFGFUN(workspace_layout, const char *layout); CFGFUN(workspace_back_and_forth, const char *value); CFGFUN(focus_follows_mouse, const char *value); +CFGFUN(mouse_warping, const char *value); CFGFUN(force_focus_wrapping, const char *value); CFGFUN(force_xinerama, const char *value); +CFGFUN(disable_randr15, const char *value); CFGFUN(fake_outputs, const char *outputs); CFGFUN(force_display_urgency_hint, const long duration_ms); +CFGFUN(focus_on_window_activation, const char *mode); +CFGFUN(show_marks, const char *value); CFGFUN(hide_edge_borders, const char *borders); CFGFUN(assign, const char *workspace); +CFGFUN(no_focus); CFGFUN(ipc_socket, const char *path); CFGFUN(restart_state, const char *path); CFGFUN(popup_during_fullscreen, const char *value); -CFGFUN(color, const char *colorclass, const char *border, const char *background, const char *text, const char *indicator); +CFGFUN(color, const char *colorclass, const char *border, const char *background, const char *text, const char *indicator, const char *child_border); CFGFUN(color_single, const char *colorclass, const char *color); CFGFUN(floating_modifier, const char *modifiers); CFGFUN(new_window, const char *windowtype, const char *border, const long width); CFGFUN(workspace, const char *workspace, const char *output); -CFGFUN(binding, const char *bindtype, const char *modifiers, const char *key, const char *release, const char *command); +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); -CFGFUN(enter_mode, const char *mode); -CFGFUN(mode_binding, const char *bindtype, const char *modifiers, const char *key, const char *release, const char *command); +CFGFUN(enter_mode, const char *pango_markup, const char *mode); +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); CFGFUN(bar_font, const char *font); +CFGFUN(bar_separator_symbol, const char *separator); CFGFUN(bar_mode, const char *mode); CFGFUN(bar_hidden_state, const char *hidden_state); CFGFUN(bar_id, const char *bar_id); CFGFUN(bar_output, const char *output); CFGFUN(bar_verbose, const char *verbose); CFGFUN(bar_modifier, const char *modifier); +CFGFUN(bar_wheel_up_cmd, const char *command); +CFGFUN(bar_wheel_down_cmd, const char *command); +CFGFUN(bar_bindsym, const char *button, const char *command); CFGFUN(bar_position, const char *position); CFGFUN(bar_i3bar_command, const char *i3bar_command); CFGFUN(bar_color, const char *colorclass, const char *border, const char *background, const char *text); CFGFUN(bar_socket_path, const char *socket_path); CFGFUN(bar_tray_output, const char *output); +CFGFUN(bar_tray_padding, const long spacing_px); CFGFUN(bar_color_single, const char *colorclass, const char *color); CFGFUN(bar_status_command, const char *command); CFGFUN(bar_binding_mode_indicator, const char *value); CFGFUN(bar_workspace_buttons, const char *value); +CFGFUN(bar_strip_workspace_numbers, const char *value); +CFGFUN(bar_start); CFGFUN(bar_finish);