]> git.sur5r.net Git - i3/i3/blob - i3bar/include/config.h
Merge branch 'fix-i3bar-multi-dpy'
[i3/i3] / i3bar / include / config.h
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3bar - an xcb-based status- and ws-bar for i3
5  * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
6  *
7  * config.c: Parses the configuration (received from i3).
8  *
9  */
10 #ifndef CONFIG_H_
11 #define CONFIG_H_
12
13 #include "common.h"
14
15 typedef enum {
16     POS_NONE = 0,
17     POS_TOP,
18     POS_BOT
19 } position_t;
20
21 typedef struct config_t {
22     int          hide_on_modifier;
23     position_t   position;
24     int          verbose;
25     struct xcb_color_strings_t colors;
26     int          disable_ws;
27     char         *bar_id;
28     char         *command;
29     char         *fontname;
30     char         *tray_output;
31     int          num_outputs;
32     char         **outputs;
33 } config_t;
34
35 config_t config;
36
37 /**
38  * Start parsing the received bar configuration json-string
39  *
40  */
41 void parse_config_json(char *json);
42
43 /**
44  * free()s the color strings as soon as they are not needed anymore.
45  *
46  */
47 void free_colors(struct xcb_color_strings_t *colors);
48
49 #endif