summaryrefslogtreecommitdiff
path: root/include/swaybar/config.h
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-03-28 23:04:20 -0400
committerDrew DeVault <[email protected]>2018-03-29 22:11:08 -0400
commitcab1352801b62d1b8a12ca1c995cb24445ce4bc9 (patch)
treebc67373916c06d48700c4f69b8c2470a2f86887f /include/swaybar/config.h
parent382e8af418a7e1b8cf93d3398509b93c6874cb0d (diff)
Start port of swaybar to layer shell
This starts up the event loop and wayland display and shims out the basic top level rendering concepts. Also includes some changes to incorporate pango into the 1.x codebase properly.
Diffstat (limited to 'include/swaybar/config.h')
-rw-r--r--include/swaybar/config.h43
1 files changed, 6 insertions, 37 deletions
diff --git a/include/swaybar/config.h b/include/swaybar/config.h
index 651f0ee3..1bfe4843 100644
--- a/include/swaybar/config.h
+++ b/include/swaybar/config.h
@@ -1,9 +1,7 @@
#ifndef _SWAYBAR_CONFIG_H
#define _SWAYBAR_CONFIG_H
-
-#include <stdint.h>
#include <stdbool.h>
-
+#include <stdint.h>
#include "list.h"
#include "util.h"
@@ -19,10 +17,10 @@ struct box_colors {
/**
* Swaybar config.
*/
-struct config {
+struct swaybar_config {
char *status_command;
bool pango_markup;
- uint32_t position;
+ uint32_t position; // zwlr_layer_surface_v1_anchor
char *font;
char *sep_symbol;
char *mode;
@@ -32,18 +30,6 @@ struct config {
bool workspace_buttons;
bool all_outputs;
list_t *outputs;
-
-#ifdef ENABLE_TRAY
- // Tray
- char *tray_output;
- char *icon_theme;
-
- uint32_t tray_padding;
- uint32_t activate_button;
- uint32_t context_button;
- uint32_t secondary_button;
-#endif
-
int height;
struct {
@@ -63,24 +49,7 @@ struct config {
} colors;
};
-/**
- * Parse position top|bottom|left|right.
- */
-uint32_t parse_position(const char *position);
-
-/**
- * Parse font.
- */
-char *parse_font(const char *font);
-
-/**
- * Initialize default sway config.
- */
-struct config *init_config();
-
-/**
- * Free config struct.
- */
-void free_config(struct config *config);
+struct swaybar_config *init_config();
+void free_config(struct swaybar_config *config);
-#endif /* _SWAYBAR_CONFIG_H */
+#endif