]> git.sur5r.net Git - i3/i3/blob - i3bar/include/config.h
i3bar: Implement the output option
[i3/i3] / i3bar / include / config.h
1 #ifndef CONFIG_H_
2 #define CONFIG_H_
3
4 #include "common.h"
5
6 typedef enum {
7     POS_NONE = 0,
8     POS_TOP,
9     POS_BOT
10 } position_t;
11
12 typedef struct config_t {
13     int          hide_on_modifier;
14     position_t   position;
15     int          verbose;
16     struct xcb_color_strings_t colors;
17     int          disable_ws;
18     char         *bar_id;
19     char         *command;
20     char         *fontname;
21     char         *tray_output;
22     int          num_outputs;
23     char         **outputs;
24 } config_t;
25
26 config_t config;
27
28 /**
29  * Start parsing the received bar configuration json-string
30  *
31  */
32 void parse_config_json(char *json);
33
34 /**
35  * free()s the color strings as soon as they are not needed anymore.
36  *
37  */
38 void free_colors(struct xcb_color_strings_t *colors);
39
40 #endif