status

statusbar program for dwm
git clone anongit@rnpnr.xyz:status.git
Log | Files | Refs | Feed | README | LICENSE

Commit: c43265532db1b6994266b7f5264e641c0919ddc1
Parent: 6a4c9aa992791dedf57dcfb5fb4f393205adb4d1
Author: Randy Palamar
Date:   Wed, 17 Mar 2021 13:24:22 -0600

shrink buf by BLOCKPAD so the padding is always printed

Diffstat:
Mstatus.c | 2+-
Mstatus.h | 3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/status.c b/status.c @@ -12,7 +12,7 @@ static int done = 0; static int dflag = 0; -char buf[BLOCKLEN]; +char buf[BLOCKLEN - BLOCKPAD]; static Display *dpy; diff --git a/status.h b/status.h @@ -1,4 +1,5 @@ #define BLOCKLEN 32 +#define BLOCKPAD 4 struct Block { size_t (*const fn)(struct Block *b); const char *fmt; @@ -10,4 +11,4 @@ struct Block { size_t len; }; -extern char buf[BLOCKLEN]; +extern char buf[BLOCKLEN - BLOCKPAD];