From 3bb3fd29c72e77347356dc0fb5ad50787fcb14bf Mon Sep 17 00:00:00 2001 From: pi66 Date: Tue, 9 Dec 2025 20:39:55 +0100 Subject: [PATCH] remove window titles from bar --- config.def.h | 1 + dwl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 1b7472d..790c048 100644 --- a/config.def.h +++ b/config.def.h @@ -7,6 +7,7 @@ static const int sloppyfocus = 1; /* focus follows mouse */ static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */ static const unsigned int borderpx = 1; /* border pixel of windows */ +static const int client_title = 0; /* 1 means show focused client name */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = {"monospace:size=10"}; diff --git a/dwl.c b/dwl.c index bf340d8..3294820 100644 --- a/dwl.c +++ b/dwl.c @@ -1612,7 +1612,7 @@ drawbar(Monitor *m) x = drwl_text(m->drw, x, 0, w, m->b.height, m->lrpad / 2, m->ltsymbol, 0); if ((w = m->b.width - tw - x) > m->b.height) { - if (c) { + if (c && client_title) { drwl_setscheme(m->drw, colors[m == selmon ? SchemeSel : SchemeNorm]); drwl_text(m->drw, x, 0, w, m->b.height, m->lrpad / 2, client_get_title(c), 0); if (c && c->isfloating) -- 2.51.2