2 * vim:ts=4:sw=4:expandtab
4 * i3bar - an xcb-based status- and ws-bar for i3
5 * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
7 * config.c: Parses the configuration (received from i3).
21 typedef struct config_t {
25 struct xcb_color_strings_t colors;
34 /* Bar display mode (hide unless modifier is pressed or show in dock mode or always hide in invisible mode) */
35 enum { M_DOCK = 0, M_HIDE = 1, M_INVISIBLE = 2 } hide_on_modifier;
37 /* The current hidden_state of the bar, which indicates whether it is hidden or shown */
38 enum { S_HIDE = 0, S_SHOW = 1 } hidden_state;
44 * Start parsing the received bar configuration json-string
47 void parse_config_json(char *json);
50 * free()s the color strings as soon as they are not needed anymore.
53 void free_colors(struct xcb_color_strings_t *colors);