diff options
Diffstat (limited to 'cancelled/dwm-showselmon-6.2.diff')
-rw-r--r-- | cancelled/dwm-showselmon-6.2.diff | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/cancelled/dwm-showselmon-6.2.diff b/cancelled/dwm-showselmon-6.2.diff deleted file mode 100644 index bbf837e..0000000 --- a/cancelled/dwm-showselmon-6.2.diff +++ /dev/null @@ -1,46 +0,0 @@ -diff -up a/config.def.h b/config.def.h ---- a/config.def.h 2020-07-04 13:56:23.316739958 +0200 -+++ b/config.def.h 2020-07-04 13:57:58.020554340 +0200 -@@ -15,6 +15,7 @@ static const char col_cyan[] = "# - static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, -+ [SchemeInv] = { col_gray1, col_gray3, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, - }; - -diff -up a/dwm.c b/dwm.c ---- a/dwm.c 2020-07-04 13:56:23.316739958 +0200 -+++ b/dwm.c 2020-07-04 14:14:54.124590755 +0200 -@@ -59,7 +59,7 @@ - - /* enums */ - enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ --enum { SchemeNorm, SchemeSel }; /* color schemes */ -+enum { SchemeNorm, SchemeInv, SchemeSel }; /* color schemes */ - enum { NetSupported, NetWMName, NetWMState, NetWMCheck, - NetWMFullscreen, NetActiveWindow, NetWMWindowType, - NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ -@@ -716,7 +716,12 @@ 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]); -+ if (m == selmon) { -+ drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); -+ } -+ else { -+ drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeInv : 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, -@@ -730,7 +735,7 @@ drawbar(Monitor *m) - - if ((w = m->ww - sw - x) > bh) { - if (m->sel) { -- drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); -+ drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeInv]); - drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); - if (m->sel->isfloating) - drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); |