From c7aca5b08af7403b218846c6593d2a4cf1e78d1a Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Fri, 3 Jul 2020 21:37:59 +0200 Subject: [PATCH] added diff file for statusbar on all monitors --- patches/dwm-statusbarallmonitors-6.2.diff | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 patches/dwm-statusbarallmonitors-6.2.diff diff --git a/patches/dwm-statusbarallmonitors-6.2.diff b/patches/dwm-statusbarallmonitors-6.2.diff new file mode 100644 index 0000000..34716fe --- /dev/null +++ b/patches/dwm-statusbarallmonitors-6.2.diff @@ -0,0 +1,21 @@ +diff --git a/dwm.c b/dwm.c +index 582c9c9..f8bb823 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -707,11 +707,11 @@ 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 */ +- drw_setscheme(drw, scheme[SchemeNorm]); +- tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ +- drw_text(drw, m->ww - tw - 2 * sp, 0, tw, bh, 0, stext, 0); +- } ++ /* removed conditional here to only draw on selected monitor, now draws on all */ ++ drw_setscheme(drw, scheme[SchemeNorm]); ++ tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ ++ drw_text(drw, m->ww - tw - 2 * sp, 0, tw, bh, 0, stext, 0); ++ + + for (c = m->clients; c; c = c->next) { + occ |= c->tags;