commit bc0dc3951d4c90f6b7634c4a23d09127c4e129b2
parent cdc7f12ad8092d536ad3715a7866eefeb8bc447b
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Sun, 28 Mar 2021 22:25:31 +0200

Move blocks[.def].h to config[.def].h

For consistency with the rest of programs.

Diffstat:
MMakefile | 6+++---
MREADME.md | 4++--
Rblocks.def.h -> config.def.h | 0
Mdwmblocks.c | 2+-
4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -2,11 +2,11 @@ PREFIX ?= /usr/local CC ?= cc LDFLAGS = -lX11 -dwmblocks: dwmblocks.c blocks.h +dwmblocks: dwmblocks.c config.h ${CC} dwmblocks.c $(LDFLAGS) -o dwmblocks -blocks.h: - cp blocks.def.h $@ +config.h: + cp config.def.h $@ install: dwmblocks mkdir -p $(DESTDIR)$(PREFIX)/bin diff --git a/README.md b/README.md @@ -10,5 +10,5 @@ dwmblocks in your xinitrc or other startup script to have it start with dwm. # Modifying blocks The statusbar is made from text output from command line programs. Blocks are -added and removed by editing the `blocks.h` header file. If the file `blocks.h` -does not exist, a new one will be made by copying `blocks.def.h`. +added and removed by editing the `config.h` header file. If the file `config.h` +does not exist, a new one will be made by copying `config.def.h`. diff --git a/blocks.def.h b/config.def.h diff --git a/dwmblocks.c b/dwmblocks.c @@ -47,7 +47,7 @@ static Window root; static void (*writestatus) () = pstdout; #endif -#include "blocks.h" +#include "config.h" static char statusbar[LENGTH(blocks)][CMDLENGTH] = {0}; static char statusstr[2][STATUSLENGTH];