--- dwm/dwm.c 2009-03-14 02:05:41.000000000 +0100 +++ dwm.c 2009-03-14 02:27:40.000000000 +0100 @@ -96,6 +96,7 @@ typedef struct { int x, y, w, h; unsigned long norm[ColLast]; unsigned long sel[ColLast]; + unsigned long urgent[ColLast]; Drawable drawable; GC gc; struct { @@ -557,7 +558,7 @@ drawbar(void) { for(i = 0; i < LENGTH(tags); i++) { dc.w = TEXTW(tags[i]); col = tagset[seltags] & 1 << i ? dc.sel : dc.norm; - drawtext(tags[i], col, urg & 1 << i); + drawtext(tags[i], urg & 1 << i ? dc.urgent : col, urg & 1 << i); /* urgent color modification */ drawsquare(sel && sel->tags & 1 << i, occ & 1 << i, urg & 1 << i, col); dc.x += dc.w; } @@ -1302,6 +1303,8 @@ setup(void) { dc.sel[ColBorder] = getcolor(selbordercolor); dc.sel[ColBG] = getcolor(selbgcolor); dc.sel[ColFG] = getcolor(selfgcolor); + dc.urgent[ColBG] = getcolor(urgentbgcolor); + dc.urgent[ColFG] = getcolor(urgentfgcolor); dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen)); dc.gc = XCreateGC(dpy, root, 0, NULL); XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); --- dwm/config.def.h 2009-03-14 02:05:41.000000000 +0100 +++ config.def.h 2009-03-14 02:28:40.000000000 +0100 @@ -8,6 +8,8 @@ static const char normfgcolor[] = "# static const char selbordercolor[] = "#0066ff"; static const char selbgcolor[] = "#0066ff"; static const char selfgcolor[] = "#ffffff"; +static const char urgentfgcolor[] = "#000000"; +static const char urgentbgcolor[] = "#FF0000"; static unsigned int borderpx = 1; /* border pixel of windows */ static unsigned int snap = 32; /* snap pixel */ static Bool showbar = True; /* False means no bar */