aboutsummaryrefslogtreecommitdiff
path: root/include/swaynag/types.h
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-07-28 09:34:25 -0400
committerFurkan Sahin <furkan-dev@proton.me>2018-07-28 09:34:25 -0400
commit271946326d413928dd60a08a72b4c8a87e0aa514 (patch)
treeb8c4ba994cf4d9ca7510d0f80a1864cce144092a /include/swaynag/types.h
parentb1df9b9ab1979effb6f3811dcc07818d124d921e (diff)
swaynag: implement config file support
Diffstat (limited to 'include/swaynag/types.h')
-rw-r--r--include/swaynag/types.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/swaynag/types.h b/include/swaynag/types.h
new file mode 100644
index 00000000..32056514
--- /dev/null
+++ b/include/swaynag/types.h
@@ -0,0 +1,25 @@
+#ifndef _SWAY_NAGBAR_TYPES_H
+#define _SWAY_NAGBAR_TYPES_H
+
+struct sway_nagbar_type {
+ char *name;
+ uint32_t button_background;
+ uint32_t background;
+ uint32_t text;
+ uint32_t border;
+ uint32_t border_bottom;
+};
+
+void nagbar_types_add_default(list_t *types);
+
+struct sway_nagbar_type *nagbar_type_get(list_t *types, char *name);
+
+struct sway_nagbar_type *nagbar_type_clone(struct sway_nagbar_type *type);
+
+void nagbar_type_free(struct sway_nagbar_type *type);
+
+void nagbar_types_free(list_t *types);
+
+int nagbar_parse_type(int argc, char **argv, struct sway_nagbar_type *type);
+
+#endif