From 2d704e6f31e1820cd760f28be5d3d13386eb486b Mon Sep 17 00:00:00 2001
From: Joe <rbo@gmx.us>
Date: Tue, 24 Dec 2024 12:17:29 +0100
Subject: up

---
 Makefile    |  6 +++---
 config.h    | 10 +++++-----
 dwmblocks.c |  2 ++
 3 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile
index ab9d050..6353a15 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
 .POSIX:
 
 PREFIX = /usr/local
-CC = gcc
+CC = cc
 
 dwmblocks: dwmblocks.o
-	$(CC) -pipe dwmblocks.o -L/usr/local/lib -lX11 -o dwmblocks
+	$(CC) -pipe dwmblocks.o -lX11 -lbsd -o dwmblocks
 dwmblocks.o: dwmblocks.c config.h
-	$(CC) -c -std=c99 -Wall -Wextra -pedantic -pipe -I/usr/local/include dwmblocks.c
+	$(CC) -c -std=c99 -Wall -Wextra -pedantic -pipe -D_POSIX_C_SOURCE=199309L dwmblocks.c
 clean:
 	rm -f *.o *.gch dwmblocks
 install: dwmblocks
diff --git a/config.h b/config.h
index 7f6ab44..55dac84 100644
--- a/config.h
+++ b/config.h
@@ -2,16 +2,16 @@
 static const Block blocks[] = {
 	/*Icon	Command			Update interval	Update signal*/
 	{ "",	"sb-mpd",		0,		10 },
-	{ "",	"sb-mailbox",	0,		9 },
+	/* { "",	"sb-mailbox",	0,		9 }, */
 	{ "",	"sb-forecast",	3600,	8 },
-	{ "",	"sb-disk",		90,		7 },
-	{ "",	"sb-cpu",		1,		7 },
+	{ "",	"sb-cpu",		5,		7 },
 	{ "",	"sb-memory",	20,		6 },
+	{ "",	"sb-disk",		90,		7 },
 	{ "",	"sb-temp",		15,		5 },
 	{ "",	"sb-battery",	120,	6 },
 	{ "",	"sb-volume",	0,		3 },
 	/* { "",	"sb-usb",		30,		2 }, */
-	{ "",	"sb-tools",		5,		2 },
+	/* { "",	"sb-tools",		5,		2 }, */
 	{ "",	"sb-net",		5,		2 },
 	{ "",	"sb-clock",		15,		1 },
 	{ "",	"sb-os",		0,		0 },
@@ -39,7 +39,7 @@ static const Block blocks[] = {
 };
 
 //Sets delimiter between status commands. NULL character ('\0') means no delimiter.
-static char *predelim = "  ";
+static char *predelim = "    ";
 static char *postdelim = "";
 
 // Have dwmblocks automatically recompile and run when you edit this file in
diff --git a/dwmblocks.c b/dwmblocks.c
index 378c111..7d65521 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -6,6 +6,8 @@
 #include <signal.h>
 #include <errno.h>
 #include <X11/Xlib.h>
+#include <sys/types.h>
+
 #define LENGTH(X) (sizeof(X) / sizeof (X[0]))
 #define CMDLENGTH		50
 
-- 
cgit v1.2.3