]> git.sur5r.net Git - i3/i3/blob - i3bar/include/config.h
i3bar: also use the position option when in 'hide' mode
[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 } config_t;
23
24 config_t config;
25
26 /**
27  * Start parsing the received bar configuration json-string
28  *
29  */
30 void parse_config_json(char *json);
31
32 /**
33  * free()s the color strings as soon as they are not needed anymore.
34  *
35  */
36 void free_colors(struct xcb_color_strings_t *colors);
37
38 #endif