Adding the status2d.xrdb patch

This commit is contained in:
Zoe Roux
2022-02-07 00:24:52 +01:00
parent 033cedb7fa
commit 7e55461f42
4 changed files with 90 additions and 0 deletions
+6
View File
@@ -78,6 +78,12 @@ drawstatusbar(int x, char* stext)
drw_clr_create(drw, &drw->scheme[ColBg], buf);
#endif // BAR_ALPHA_PATCH
i += 7;
} else if (text[i] == 'C') {
int c = atoi(text + ++i);
drw_clr_create(drw, &drw->scheme[ColFg], termcolor[c]);
} else if (text[i] == 'B') {
int c = atoi(text + ++i);
drw_clr_create(drw, &drw->scheme[ColBg], termcolor[c]);
} else if (text[i] == 'd') {
drw->scheme[ColFg] = scheme[SchemeNorm][ColFg];
drw->scheme[ColBg] = scheme[SchemeNorm][ColBg];