aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--config.h4
-rw-r--r--dwmblocks.c1
3 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6353a15..466aa87 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ CC = cc
dwmblocks: dwmblocks.o
$(CC) -pipe dwmblocks.o -lX11 -lbsd -o dwmblocks
dwmblocks.o: dwmblocks.c config.h
- $(CC) -c -std=c99 -Wall -Wextra -pedantic -pipe -D_POSIX_C_SOURCE=199309L dwmblocks.c
+ $(CC) -c -std=c99 -Wall -Wextra -pedantic -pipe -D_POSIX_C_SOURCE=200112L dwmblocks.c
clean:
rm -f *.o *.gch dwmblocks
install: dwmblocks
diff --git a/config.h b/config.h
index 55dac84..0eb7c66 100644
--- a/config.h
+++ b/config.h
@@ -1,7 +1,7 @@
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
static const Block blocks[] = {
/*Icon Command Update interval Update signal*/
- { "", "sb-mpd", 0, 10 },
+ /* { "", "sb-mpd", 0, 10 }, */
/* { "", "sb-mailbox", 0, 9 }, */
{ "", "sb-forecast", 3600, 8 },
{ "", "sb-cpu", 5, 7 },
@@ -9,7 +9,7 @@ static const Block blocks[] = {
{ "", "sb-disk", 90, 7 },
{ "", "sb-temp", 15, 5 },
{ "", "sb-battery", 120, 6 },
- { "", "sb-volume", 0, 3 },
+ /* { "", "sb-volume", 0, 3 }, */
/* { "", "sb-usb", 30, 2 }, */
/* { "", "sb-tools", 5, 2 }, */
{ "", "sb-net", 5, 2 },
diff --git a/dwmblocks.c b/dwmblocks.c
index 7d65521..7ecf3b1 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -7,6 +7,7 @@
#include <errno.h>
#include <X11/Xlib.h>
#include <sys/types.h>
+#include <bsd/string.h>
#define LENGTH(X) (sizeof(X) / sizeof (X[0]))
#define CMDLENGTH 50