aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--applied/dwm-statusallmons-6.2.diff25
-rw-r--r--cancelled/dwm-showselmon-6.2.diff46
-rw-r--r--dwm.c6
3 files changed, 75 insertions, 2 deletions
diff --git a/applied/dwm-statusallmons-6.2.diff b/applied/dwm-statusallmons-6.2.diff
new file mode 100644
index 0000000..9d9633d
--- /dev/null
+++ b/applied/dwm-statusallmons-6.2.diff
@@ -0,0 +1,25 @@
+diff -up a/dwm.c b/dwm.c
+--- a/dwm.c 2020-07-09 16:49:10.023585649 +0200
++++ b/dwm.c 2020-07-09 16:49:43.497542191 +0200
+@@ -702,7 +702,7 @@ drawbar(Monitor *m)
+ Client *c;
+
+ /* draw status first so it can be overdrawn by tags later */
+- if (m == selmon) { /* status is only drawn on selected monitor */
++ if (m == selmon || 1) { /* status is only drawn on selected monitor */
+ drw_setscheme(drw, scheme[SchemeNorm]);
+ sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
+ drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
+@@ -1987,9 +1987,11 @@ updatesizehints(Client *c)
+ void
+ updatestatus(void)
+ {
++ Monitor* m;
+ if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
+ strcpy(stext, "dwm-"VERSION);
+- drawbar(selmon);
++ for(m = mons; m; m = m->next)
++ drawbar(m);
+ }
+
+ void
diff --git a/cancelled/dwm-showselmon-6.2.diff b/cancelled/dwm-showselmon-6.2.diff
new file mode 100644
index 0000000..bbf837e
--- /dev/null
+++ b/cancelled/dwm-showselmon-6.2.diff
@@ -0,0 +1,46 @@
+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);
diff --git a/dwm.c b/dwm.c
index e5068e6..fc1e2a8 100644
--- a/dwm.c
+++ b/dwm.c
@@ -879,7 +879,7 @@ drawbar(Monitor *m)
return;
/* draw status first so it can be overdrawn by tags later */
- if (m == selmon) { /* status is only drawn on selected monitor */
+ if (m == selmon || 1) { /* status is only drawn on selected monitor */
drw_setscheme(drw, scheme[SchemeNorm]);
tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0);
@@ -2355,9 +2355,11 @@ updatesizehints(Client *c)
void
updatestatus(void)
{
+ Monitor* m;
if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
strcpy(stext, "dwm-"VERSION);
- drawbar(selmon);
+ for(m = mons; m; m = m->next)
+ drawbar(m);
}
void