summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sobczak <chris@sobczak.family>2026-07-06 13:28:12 -0700
committerChris Sobczak <chris@sobczak.family>2026-07-06 13:28:12 -0700
commit3ccffabbdbd4e9382670d99d640e7f76eac011c8 (patch)
treec592acc63e12cdc3f7729227687808914cd4698f
parent2a24cd94d8fe9d5a4f6071158d2e1e0f369b5bbd (diff)
Clean and draw status on all monitors?
-rw-r--r--config.def.h7
-rw-r--r--dwl.c13
2 files changed, 9 insertions, 11 deletions
diff --git a/config.def.h b/config.def.h
index 5b6de7c..b9dc55a 100644
--- a/config.def.h
+++ b/config.def.h
@@ -22,7 +22,7 @@ static const float default_opacity_focus = 1.00f;
// from bar patch
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-static const char *fonts[] = {"Maple Mono NL:size=12"};
+static const char *fonts[] = { "Maple Mono NL:size=12" };
static uint32_t colors[][3] = {
/* fg bg border */
[SchemeNorm] = { 0xaebbccff, 0x00000000, 0x00000000 },
@@ -34,20 +34,15 @@ static uint32_t colors[][3] = {
static char *tags[] = { "🌎", "🍁", "🍂", "⛵", "𝄇" };
#define TAGCOUNT (sizeof(tags) / sizeof(tags[0]))
-
/* logging */
static int log_level = WLR_ERROR;
static const Rule rules[] = {
- /* app_id title tags mask isfloating monitor */
/* app_id title tags mask isfloating alpha focus alpha unfocus monitor */
{ "gimp", NULL, 0, 1, default_opacity_focus, default_opacity_unfocus, -1 },
{ "mpv", NULL, 0, 1, 1, 1, -1 },
-// { "Minecraft", NULL, 0, 0, 1, 1, -1 },
-// { "R_x11", NULL, 0, 0, 1, 1, -1 },
{ "librewolf", NULL, 1, 0, default_opacity_focus, default_opacity_unfocus, -1 },
{ "thunderbird",NULL, 1 << 1, 0, default_opacity_focus, default_opacity_unfocus, 0 },
-// { "claws-mail",NULL, 1 << 1, 0, default_opacity_focus, default_opacity_unfocus, 0 },
{ "pwvucontrol",NULL, 1 << 4, 0, 1, 1, 0 },
/* default/example rule: can be changed but cannot be eliminated; at least one rule must exist */
};
diff --git a/dwl.c b/dwl.c
index 691d4f2..a17b7f4 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1625,11 +1625,14 @@ 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 */
- drwl_setscheme(m->drw, colors[SchemeNorm]);
- tw = TEXTW(m, stext) - m->lrpad + 2; /* 2px right padding */
- drwl_text(m->drw, m->b.width - tw, 0, tw, m->b.height, 0, stext, 0);
- }
+// if (m == selmon) { /* status is only drawn on selected monitor */
+
+ /* draw status on all monitors */
+ drwl_setscheme(m->drw, colors[SchemeNorm]);
+ tw = TEXTW(m, stext) - m->lrpad + 2; /* 2px right padding */
+ drwl_text(m->drw, m->b.width - tw, 0, tw, m->b.height, 0, stext, 0);
+
+// }
wl_list_for_each(c, &clients, link) {
if (c->mon != m)