dwm

[fork] dynamic window manager
Log | Files | Refs | README | LICENSE

commit fdefc039038ece1f6ad7524a5580487d692b2d7d
parent 529c1241cdd7daebce7326021d106545e5062846
Author: Hayden Hamilton <hayden@haydenvh.com>
Date:   Wed,  1 Apr 2020 00:27:04 +0100

Fully integrated status2d patch

Diffstat:
Mdwm.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/dwm.c b/dwm.c @@ -745,8 +745,15 @@ drawstatusbar(Monitor *m, int bh, char* stext) { buf[7] = '\0'; drw_clr_create(drw, &drw->scheme[ColFg], buf); i += 7; + } else if (text[i] == 'b') { + char buf[8]; + memcpy(buf, (char*)text+i+1, 7); + buf[7] = '\0'; + drw_clr_create(drw, &drw->scheme[ColBg], buf); + i += 7; } else if (text[i] == 'd') { drw->scheme[ColFg] = scheme[SchemeStat][ColFg]; + drw->scheme[ColBg] = scheme[SchemeStat][ColBg]; } else if (text[i] == 'r') { int rx = atoi(text + ++i); while (text[++i] != ',');