From 98c5f7c5b9d3ba9897b033f900c793f95f5d1521 Mon Sep 17 00:00:00 2001 From: Ray Andrew <4437323+rayandrew@users.noreply.github.com> Date: Mon, 7 Oct 2024 18:14:13 -0500 Subject: [PATCH] add statusallmons --- dwm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dwm.c b/dwm.c index c7b45e6..fa26aac 100644 --- a/dwm.c +++ b/dwm.c @@ -889,7 +889,7 @@ drawbar(Monitor *m) stw = getsystraywidth(); /* 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 - 2 * sp, 0, tw, bh, 0, stext, 0); @@ -2619,9 +2619,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); updatesystray(); }