commit 30ec7e6550d5826232b0a35fdf5e6cfe9aebfffa
Author: Lars Niesen <[email protected]>
Date:   Tue Jan 14 09:12:33 2020 +0100

    Added my (Lars Niesen) own patch (colorbar) to the website

diff --git a/dwm.suckless.org/patches/colorbar/colorbar.png 
b/dwm.suckless.org/patches/colorbar/colorbar.png
new file mode 100644
index 00000000..4a63e673
Binary files /dev/null and b/dwm.suckless.org/patches/colorbar/colorbar.png 
differ
diff --git a/dwm.suckless.org/patches/colorbar/dwm-colorbar-6.2.diff 
b/dwm.suckless.org/patches/colorbar/dwm-colorbar-6.2.diff
new file mode 100644
index 00000000..91c067da
--- /dev/null
+++ b/dwm.suckless.org/patches/colorbar/dwm-colorbar-6.2.diff
@@ -0,0 +1,68 @@
+diff --git a/config.def.h b/config.def.h
+index 1c0b587..a516645 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -16,6 +16,11 @@ static const char *colors[][3]      = {
+       /*               fg         bg         border   */
+       [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
+       [SchemeSel]  = { col_gray4, col_cyan,  col_cyan  },
++      [SchemeStatus]  = { col_gray3, col_gray1,  "#000000"  }, // Statusbar 
right {text,background,not used but cannot be empty}
++      [SchemeTagsSel]  = { col_gray4, col_cyan,  "#000000"  }, // Tagbar left 
selected {text,background,not used but cannot be empty}
++    [SchemeTagsNorm]  = { col_gray3, col_gray1,  "#000000"  }, // Tagbar left 
unselected {text,background,not used but cannot be empty}
++    [SchemeInfoSel]  = { col_gray4, col_cyan,  "#000000"  }, // infobar 
middle  selected {text,background,not used but cannot be empty}
++    [SchemeInfoNorm]  = { col_gray3, col_gray1,  "#000000"  }, // infobar 
middle  unselected {text,background,not used but cannot be empty}
+ };
+ 
+ /* tagging */
+diff --git a/dwm.c b/dwm.c
+index 4465af1..0d1d2f7 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, SchemeStatus, SchemeTagsSel, SchemeTagsNorm, 
SchemeInfoSel, SchemeInfoNorm }; /* color schemes */
+ enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
+        NetWMFullscreen, NetActiveWindow, NetWMWindowType,
+        NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
+@@ -703,7 +703,7 @@ drawbar(Monitor *m)
+ 
+       /* draw status first so it can be overdrawn by tags later */
+       if (m == selmon) { /* status is only drawn on selected monitor */
+-              drw_setscheme(drw, scheme[SchemeNorm]);
++              drw_setscheme(drw, scheme[SchemeStatus]);
+               sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
+               drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
+       }
+@@ -716,7 +716,7 @@ 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 ? 
SchemeTagsSel : SchemeTagsNorm]);
+               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,
+@@ -725,17 +725,17 @@ drawbar(Monitor *m)
+               x += w;
+       }
+       w = blw = TEXTW(m->ltsymbol);
+-      drw_setscheme(drw, scheme[SchemeNorm]);
++      drw_setscheme(drw, scheme[SchemeTagsNorm]);
+       x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
+ 
+       if ((w = m->ww - sw - x) > bh) {
+               if (m->sel) {
+-                      drw_setscheme(drw, scheme[m == selmon ? SchemeSel : 
SchemeNorm]);
++                      drw_setscheme(drw, scheme[m == selmon ? SchemeInfoSel : 
SchemeInfoNorm]);
+                       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);
+               } else {
+-                      drw_setscheme(drw, scheme[SchemeNorm]);
++                      drw_setscheme(drw, scheme[SchemeInfoNorm]);
+                       drw_rect(drw, x, 0, w, bh, 1, 1);
+               }
+       }
diff --git a/dwm.suckless.org/patches/colorbar/index.md 
b/dwm.suckless.org/patches/colorbar/index.md
new file mode 100644
index 00000000..13be3e77
--- /dev/null
+++ b/dwm.suckless.org/patches/colorbar/index.md
@@ -0,0 +1,19 @@
+colorbar
+========
+
+Description
+-----------
+This patch lets you change the foreground and 
+background color of every statusbar element.
+
+Simply change the RGB values in the config.def.h.
+
+![colorbar_screenshot](colorbar.png)
+Download
+--------
+* [dwm-colorbar-6.2.diff](dwm-colorbar-6.2.diff)(13.01.2020)
+
+Author
+------
+
+* Lars Niesen <lars.niesen[at]gmx.de>


Reply via email to