[wiki] [sites] Fixed a bug, updated readme || Dave Kennedy
commit 308ff4d29063492a2386fe52c56a076aa5075298
Author: Dave Kennedy <dave-kennedy_AT_users.noreply.github.com>
Date: Sun Nov 22 14:44:38 2015 -0700
Fixed a bug, updated readme
diff --git a/dwm.suckless.org/patches/dwm-6.1-statuscolors.diff b/dwm.suckless.org/patches/dwm-6.1-statuscolors.diff
index 86678db..a92de7c 100644
--- a/dwm.suckless.org/patches/dwm-6.1-statuscolors.diff
+++ b/dwm.suckless.org/patches/dwm-6.1-statuscolors.diff
_AT_@ -1,6 +1,6 @@
-diff -up dwm/drw.c.orig dwm/drw.c
---- dwm/drw.c.orig 2015-11-22 10:46:53.141705984 -0700
-+++ dwm/drw.c 2015-11-22 12:15:35.051489467 -0700
+diff -up dwm/drw.c dwm-statuscolors/drw.c
+--- dwm/drw.c 2015-11-22 14:15:47.147862717 -0700
++++ dwm-statuscolors/drw.c 2015-11-22 14:21:00.437849971 -0700
_AT_@ -206,12 +206,37 @@ drw_setscheme(Drw *drw, ClrScheme *schem
drw->scheme = scheme;
}
_AT_@ -74,9 +74,9 @@ diff -up dwm/drw.c.orig dwm/drw.c
}
x += tex.w;
w -= tex.w;
-diff -up dwm/drw.h.orig dwm/drw.h
---- dwm/drw.h.orig 2015-11-22 10:46:53.141705984 -0700
-+++ dwm/drw.h 2015-11-22 12:17:17.434818635 -0700
+diff -up dwm/drw.h dwm-statuscolors/drw.h
+--- dwm/drw.h 2015-11-22 14:15:47.147862717 -0700
++++ dwm-statuscolors/drw.h 2015-11-22 14:21:00.437849971 -0700
_AT_@ -67,7 +67,8 @@ void drw_setfont(Drw *, Fnt *);
void drw_setscheme(Drw *, ClrScheme *);
_AT_@ -87,9 +87,9 @@ diff -up dwm/drw.h.orig dwm/drw.h
int drw_text(Drw *, int, int, unsigned int, unsigned int, const char *, int);
/* Map functions */
-diff -up dwm/dwm.c.orig dwm/dwm.c
---- dwm/dwm.c.orig 2015-11-22 10:46:53.141705984 -0700
-+++ dwm/dwm.c 2015-11-22 12:33:19.198112839 -0700
+diff -up dwm/dwm.c dwm-statuscolors/dwm.c
+--- dwm/dwm.c 2015-11-22 14:15:47.147862717 -0700
++++ dwm-statuscolors/dwm.c 2015-11-22 14:21:27.054515557 -0700
_AT_@ -51,6 +51,7 @@
* MAX(0, MIN((y)+(h),(m)->wy+(m)->wh) - MAX((y),(m)->wy)))
#define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags]))
_AT_@ -117,7 +117,7 @@ diff -up dwm/dwm.c.orig dwm/dwm.c
+ drw_text(drw, x, 0, w, bh, tags[i], 1);
drw_rect(drw, x + 1, 1, dx, dx, m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
- occ & 1 << i, urg & 1 << i);
-+ occ & 1 << i);
++ occ & 1 << i);
x += w;
}
w = blw = TEXTW(m->ltsymbol);
_AT_@ -126,7 +126,7 @@ diff -up dwm/dwm.c.orig dwm/dwm.c
drw_text(drw, x, 0, w, bh, m->ltsymbol, 0);
x += w;
xx = x;
-_AT_@ -736,17 +737,17 @@ drawbar(Monitor *m)
+_AT_@ -736,18 +737,18 @@ drawbar(Monitor *m)
x = xx;
w = m->ww - xx;
}
_AT_@ -145,10 +145,12 @@ diff -up dwm/dwm.c.orig dwm/dwm.c
+ drw_rect(drw, x + 1, 1, dx, dx, m->sel->isfixed, m->sel->isfloating);
} else {
- drw_setscheme(drw, &scheme[SchemeNorm]);
+- drw_rect(drw, x, 0, w, bh, 1, 0, 1);
+ drw_setscheme(drw, &scheme[0]);
- drw_rect(drw, x, 0, w, bh, 1, 0, 1);
++ drw_rect(drw, x, 0, w, bh, 1, 0);
}
}
+ drw_map(drw, m->barwin, 0, 0, m->ww, bh);
_AT_@ -807,7 +808,7 @@ focus(Client *c)
detachstack(c);
attachstack(c);
diff --git a/dwm.suckless.org/patches/statuscolors.md b/dwm.suckless.org/patches/statuscolors.md
index 159ec40..70879f9 100644
--- a/dwm.suckless.org/patches/statuscolors.md
+++ b/dwm.suckless.org/patches/statuscolors.md
_AT_@ -19,7 +19,7 @@ Add code to your status script to output the raw characters '\x03' to switch to
The following definition in 'config.h':
#define NUMCOLORS 4
- static const char colors[NUMCOLORS][ColLast][8] = {
+ static const char colors[NUMCOLORS][MAXCOLORS][8] = {
// border foreground background
{ "#000033", "#dddddd", "#000033" }, // normal
{ "#000088", "#ffffff", "#000088" }, // selected
Received on Sun Nov 22 2015 - 22:43:37 CET
This archive was generated by hypermail 2.3.0
: Sun Nov 22 2015 - 22:48:12 CET