added nmaster couner

This commit is contained in:
JuliusHerrmann 2020-10-19 23:03:27 +02:00
parent f3b9279fb0
commit f0d57e2b55
3 changed files with 3 additions and 1 deletions

BIN
dwm

Binary file not shown.

4
dwm.c
View File

@ -904,7 +904,9 @@ drawbar(Monitor *m)
}
w = blw = TEXTW(m->ltsymbol);
drw_setscheme(drw, scheme[SchemeTagsNorm]);
x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
char str[24];
sprintf(str, "%s%d", m->ltsymbol, selmon->nmaster);
x = drw_text(drw, x, 0, w, bh, lrpad / 2, /*m->ltsymbol strcat(str, m->ltsymbol)*/ str, 0);
if ((w = m->ww - sw - stw - x) > bh) {
drw_setscheme(drw, scheme[m == selmon ? SchemeInfoSel : SchemeInfoNorm]);

BIN
dwm.o

Binary file not shown.