From eb71fa427a8dc424417e860619ee06538b0016bb Mon Sep 17 00:00:00 2001 From: davidpkj Date: Fri, 25 Aug 2023 20:17:29 +0200 Subject: Patch: mainmon-20220330 --- config.h | 1 + dwm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index 0cd0fe7..7286cbf 100644 --- a/config.h +++ b/config.h @@ -43,6 +43,7 @@ static char *colors[][3] = { /* tagging */ static const char *tags[] = { " 󰘦 ", " 󰖟 ", "  ", " 󰛊 " }; +static const int mainmon = 0; /* default layout per tags */ /* The first element is for all-tag view, following i-th element corresponds to */ diff --git a/dwm.c b/dwm.c index f0d6144..bce09fd 100644 --- a/dwm.c +++ b/dwm.c @@ -1035,7 +1035,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 == &mons[mainmon]) { /* status is only drawn on selected monitor */ tw = m->ww - drawstatusbar(m, bh, stext); } -- cgit v1.2.3