Created
May 4, 2021 05:15
-
-
Save ahauser31/df46ea06ba5c875173c10588da1a710f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/config.def.h b/config.def.h | |
index 1c0b587..73da874 100644 | |
--- a/config.def.h | |
+++ b/config.def.h | |
@@ -12,10 +12,12 @@ static const char col_gray2[] = "#444444"; | |
static const char col_gray3[] = "#bbbbbb"; | |
static const char col_gray4[] = "#eeeeee"; | |
static const char col_cyan[] = "#005577"; | |
+static const char col_red[] = "#ff0000"; | |
static const char *colors[][3] = { | |
/* fg bg border */ | |
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, | |
[SchemeSel] = { col_gray4, col_cyan, col_cyan }, | |
+ [SchemeOcc] = { col_red, col_gray1, col_gray2 }, | |
}; | |
/* tagging */ | |
diff --git a/dwm.c b/dwm.c | |
index 664c527..ecb50a7 100644 | |
--- a/dwm.c | |
+++ b/dwm.c | |
@@ -59,7 +59,7 @@ | |
/* enums */ | |
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ | |
-enum { SchemeNorm, SchemeSel }; /* color schemes */ | |
+enum { SchemeNorm, SchemeSel, SchemeOcc }; /* color schemes */ | |
enum { NetSupported, NetWMName, NetWMState, NetWMCheck, | |
NetWMFullscreen, NetActiveWindow, NetWMWindowType, | |
NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ | |
@@ -717,12 +717,8 @@ drawbar(Monitor *m) | |
x = 0; | |
for (i = 0; i < LENGTH(tags); i++) { | |
w = TEXTW(tags[i]); | |
- drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); | |
+ drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : (occ & 1 << i ? SchemeOcc : SchemeNorm)]); | |
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); | |
- if (occ & 1 << i) | |
- drw_rect(drw, x + boxs, boxs, boxw, boxw, | |
- m == selmon && selmon->sel && selmon->sel->tags & 1 << i, | |
- urg & 1 << i); | |
x += w; | |
} | |
w = blw = TEXTW(m->ltsymbol); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment