Make from a single config file; Remove dist option

This commit is contained in:
2024-06-24 20:15:31 +01:00
parent 72f9abc115
commit cdac888c72
14 changed files with 8 additions and 1009 deletions

View File

@@ -16,14 +16,11 @@ options:
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
dwmblocks: dwmblocks.c blocks.def.h blocks.h
dwmblocks: dwmblocks.c blocks.h
${CC} -o dwmblocks dwmblocks.c ${CFLAGS} ${LDFLAGS}
blocks.h:
cp blocks.def.h $@
clean:
rm -f *.o *.gch dwmblocks blocks.h
rm -f *.o *.gch dwmblocks
install: dwmblocks
mkdir -p ${DESTDIR}${PREFIX}/bin

View File

@@ -1,15 +0,0 @@
//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-network", 10, 0},
{"", "sb-battery", 20, 0},
{"", "sb-volume", 0, 10},
{"", "sb-cpu", 5, 0},
{"", "sb-memory", 10, 0},
{"", "date '+%d/%m/%y (%a) %I:%M%p'", 60, 0},
};
//sets delimiter between status commands. NULL character ('\0') means no delimiter.
static char delim[] = " | ";
static unsigned int delimLen = 5;