My build of dwm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

69 lines
3.0 KiB

  1. diff --git a/config.def.h b/config.def.h
  2. index 1c0b587..a516645 100644
  3. --- a/config.def.h
  4. +++ b/config.def.h
  5. @@ -16,6 +16,11 @@ static const char *colors[][3] = {
  6. /* fg bg border */
  7. [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
  8. [SchemeSel] = { col_gray4, col_cyan, col_cyan },
  9. + [SchemeStatus] = { col_gray3, col_gray1, "#000000" }, // Statusbar right {text,background,not used but cannot be empty}
  10. + [SchemeTagsSel] = { col_gray4, col_cyan, "#000000" }, // Tagbar left selected {text,background,not used but cannot be empty}
  11. + [SchemeTagsNorm] = { col_gray3, col_gray1, "#000000" }, // Tagbar left unselected {text,background,not used but cannot be empty}
  12. + [SchemeInfoSel] = { col_gray4, col_cyan, "#000000" }, // infobar middle selected {text,background,not used but cannot be empty}
  13. + [SchemeInfoNorm] = { col_gray3, col_gray1, "#000000" }, // infobar middle unselected {text,background,not used but cannot be empty}
  14. };
  15. /* tagging */
  16. diff --git a/dwm.c b/dwm.c
  17. index 4465af1..0d1d2f7 100644
  18. --- a/dwm.c
  19. +++ b/dwm.c
  20. @@ -59,7 +59,7 @@
  21. /* enums */
  22. enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
  23. -enum { SchemeNorm, SchemeSel }; /* color schemes */
  24. +enum { SchemeNorm, SchemeSel, SchemeStatus, SchemeTagsSel, SchemeTagsNorm, SchemeInfoSel, SchemeInfoNorm }; /* color schemes */
  25. enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
  26. NetWMFullscreen, NetActiveWindow, NetWMWindowType,
  27. NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
  28. @@ -703,7 +703,7 @@ drawbar(Monitor *m)
  29. /* draw status first so it can be overdrawn by tags later */
  30. if (m == selmon) { /* status is only drawn on selected monitor */
  31. - drw_setscheme(drw, scheme[SchemeNorm]);
  32. + drw_setscheme(drw, scheme[SchemeStatus]);
  33. sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
  34. drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
  35. }
  36. @@ -716,7 +716,7 @@ drawbar(Monitor *m)
  37. x = 0;
  38. for (i = 0; i < LENGTH(tags); i++) {
  39. w = TEXTW(tags[i]);
  40. - drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
  41. + drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeTagsSel : SchemeTagsNorm]);
  42. drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
  43. if (occ & 1 << i)
  44. drw_rect(drw, x + boxs, boxs, boxw, boxw,
  45. @@ -725,17 +725,17 @@ drawbar(Monitor *m)
  46. x += w;
  47. }
  48. w = blw = TEXTW(m->ltsymbol);
  49. - drw_setscheme(drw, scheme[SchemeNorm]);
  50. + drw_setscheme(drw, scheme[SchemeTagsNorm]);
  51. x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
  52. if ((w = m->ww - sw - x) > bh) {
  53. if (m->sel) {
  54. - drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
  55. + drw_setscheme(drw, scheme[m == selmon ? SchemeInfoSel : SchemeInfoNorm]);
  56. drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);
  57. if (m->sel->isfloating)
  58. drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);
  59. } else {
  60. - drw_setscheme(drw, scheme[SchemeNorm]);
  61. + drw_setscheme(drw, scheme[SchemeInfoNorm]);
  62. drw_rect(drw, x, 0, w, bh, 1, 1);
  63. }
  64. }