aboutsummaryrefslogtreecommitdiff
path: root/swaybar/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/main.c')
-rw-r--r--swaybar/main.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/swaybar/main.c b/swaybar/main.c
new file mode 100644
index 00000000..49ba7a78
--- /dev/null
+++ b/swaybar/main.c
@@ -0,0 +1,20 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include "client/registry.h"
+#include "client/window.h"
+#include "log.h"
+
+struct registry *registry;
+struct window *window;
+
+void sway_terminate(void) {
+ window_teardown(window);
+ registry_teardown(registry);
+ exit(EXIT_FAILURE);
+}
+
+int main(int argc, char **argv) {
+ init_log(L_INFO);
+ sway_log(L_INFO, "Hello world!");
+ return 0;
+}