snot

simple notification daemon for wayland

Files | Log | Commits | Refs | README


b39c90e

Author: nyangkosense

Date: 2024-11-04

Subject: format

Diff

commit b39c90eeb8da3026da621821b73da9a78f6992d0
Author: nyangkosense <sebastian.michalk@protonmail.com>
Date:   Mon Nov 4 18:22:52 2024 +0000

    format

diff --git a/config.def.h b/config.def.h
index 7e301a3..9453c38 100644
--- a/config.def.h
+++ b/config.def.h
@@ -10,7 +10,7 @@
 #define BACKGROUND_COLOR "#222222"        /* background color in hex */
 #define FOREGROUND_COLOR "#bbbbbb"        /* text color in hex */
 #define BORDER_COLOR "#005577"            /* border color in hex */
-#define FONT "LiberationMono 10"               /* font name and size */
+#define FONT "Liberation Mono 10"               /* font name and size */
 
 /* behavior */
 #define DURATION 3000                     /* notification display duration in ms */
@@ -26,4 +26,4 @@
 /* alignment (0 = left, 1 = center, 2 = right) */
 #define ALIGNMENT 2
 
-#endif /* CONFIG_H */
\ No newline at end of file
+#endif /* CONFIG_H */
diff --git a/config.h b/config.h
deleted file mode 100644
index f8bc41d..0000000
--- a/config.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef CONFIG_H
-#define CONFIG_H
-
-/* appearance */
-#define BORDER_WIDTH 2
-#define PADDING 15
-#define BACKGROUND_COLOR "#222222"        /* background color in hex */
-#define FOREGROUND_COLOR "#bbbbbb"        /* text color in hex */
-#define BORDER_COLOR "#005577"            /* border color in hex */
-#define FONT "monospace 10"               /* font name and size */
-
-/* behavior */
-#define DURATION 3000                     /* notification display duration in ms */
-#define FADE_TIME 200                     /* fade animation duration in ms */
-#define MAX_NOTIFICATIONS 5               /* maximum number of notifications shown */
-#define NOTIFICATION_WIDTH 300            /* width of notification window */
-#define NOTIFICATION_HEIGHT 100            /* height of notification window */
-#define SPACING 10                        /* space between notifications */
-
-/* position (0 = top, 1 = bottom) */
-#define POSITION 0
-/* alignment (0 = left, 1 = center, 2 = right) */
-#define ALIGNMENT 2
-
-#endif /* CONFIG_H */
diff --git a/notifyd.o b/notifyd.o
deleted file mode 100644
index db7fb98..0000000
Binary files a/notifyd.o and /dev/null differ
diff --git a/snot.c b/snot.c
index 2439135..997d6af 100644
--- a/snot.c
+++ b/snot.c
@@ -35,18 +35,18 @@ die(const char *msg) {
     exit(1);
 }
 
-static void
+static void 
 registry_global(void *data, struct wl_registry *registry,
-                uint32_t name, const char *interface, uint32_t version) {
+                            uint32_t name, const char *interface, uint32_t version) {
     if (strcmp(interface, wl_compositor_interface.name) == 0) {
         compositor = wl_registry_bind(registry, name,
-                                    &wl_compositor_interface, 4);
+                                      &wl_compositor_interface, 4);
     } else if (strcmp(interface, zwlr_layer_shell_v1_interface.name) == 0) {
         layer_shell = wl_registry_bind(registry, name,
-                                     &zwlr_layer_shell_v1_interface, 1);
+                                       &zwlr_layer_shell_v1_interface, 1);
     } else if (strcmp(interface, wl_shm_interface.name) == 0) {
         shm = wl_registry_bind(registry, name,
-                             &wl_shm_interface, 1);
+                               &wl_shm_interface, 1);
     }
 }
 
@@ -542,4 +542,4 @@ while (1) {
             remove_notification(i--);
         }
     }
-}}
\ No newline at end of file
+}}
diff --git a/snot.o b/snot.o
index 87a32fd..520e198 100644
Binary files a/snot.o and b/snot.o differ