diff options
| author | Drew DeVault <sir@cmpwn.com> | 2018-03-28 23:56:02 -0400 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2018-03-29 22:11:08 -0400 |
| commit | 5c9ad035db1bebba3f1954dd1f4328c6421776d4 (patch) | |
| tree | 860eef96eaa4e7573384e64731f914d24e846cf5 /include/swaybar/config.h | |
| parent | cab1352801b62d1b8a12ca1c995cb24445ce4bc9 (diff) | |
Wire up basic IPC support
Diffstat (limited to 'include/swaybar/config.h')
| -rw-r--r-- | include/swaybar/config.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/include/swaybar/config.h b/include/swaybar/config.h index 1bfe4843..4b3b5b34 100644 --- a/include/swaybar/config.h +++ b/include/swaybar/config.h @@ -2,21 +2,20 @@ #define _SWAYBAR_CONFIG_H #include <stdbool.h> #include <stdint.h> -#include "list.h" +#include <wayland-client.h> #include "util.h" -/** - * Colors for a box with background, border and text colors. - */ struct box_colors { uint32_t border; uint32_t background; uint32_t text; }; -/** - * Swaybar config. - */ +struct config_output { + struct wl_list link; + char *name; +}; + struct swaybar_config { char *status_command; bool pango_markup; @@ -28,8 +27,7 @@ struct swaybar_config { bool binding_mode_indicator; bool wrap_scroll; bool workspace_buttons; - bool all_outputs; - list_t *outputs; + struct wl_list outputs; int height; struct { @@ -51,5 +49,6 @@ struct swaybar_config { struct swaybar_config *init_config(); void free_config(struct swaybar_config *config); +uint32_t parse_position(const char *position); #endif |
