diff options
| author | Joe <rbo@gmx.us> | 2024-12-24 12:17:29 +0100 | 
|---|---|---|
| committer | Joe <rbo@gmx.us> | 2024-12-24 12:17:29 +0100 | 
| commit | 2d704e6f31e1820cd760f28be5d3d13386eb486b (patch) | |
| tree | 0535f9d44009cebf7255292ef28ac9b196141646 | |
| parent | up (diff) | |
| download | dwmblocks-2d704e6f31e1820cd760f28be5d3d13386eb486b.tar.gz dwmblocks-2d704e6f31e1820cd760f28be5d3d13386eb486b.tar.bz2 dwmblocks-2d704e6f31e1820cd760f28be5d3d13386eb486b.tar.xz dwmblocks-2d704e6f31e1820cd760f28be5d3d13386eb486b.tar.zst dwmblocks-2d704e6f31e1820cd760f28be5d3d13386eb486b.zip | |
up
Diffstat (limited to '')
| -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 | 
