diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | config.h | 10 | ||||
-rw-r--r-- | dwmblocks.c | 2 |
3 files changed, 10 insertions, 8 deletions
@@ -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 @@ -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 |