From 7245ff2adc16f5c61c1575687583b55b7d3e0ac5 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sun, 17 Dec 2023 13:49:27 +0100 Subject: Fix statusbar spacing --- dwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwm.c b/dwm.c index b4bc210..2f82a20 100644 --- a/dwm.c +++ b/dwm.c @@ -799,13 +799,13 @@ drawbar(Monitor *m) /* 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 */ + tw = TEXTW(stext) - lrpad + 4; /* 4px right padding */ while (1) { if ((unsigned int)*ts > LENGTH(colors)) { ts++; continue ; } ctmp = *ts; *ts = '\0'; drw_text(drw, m->ww - tw + tx, 0, tw - tx, bh, 0, tp, 0); - tx += TEXTW(tp) -lrpad; + tx += TEXTW(tp) - lrpad + 10; if (ctmp == '\0') { break; } drw_setscheme(drw, scheme[(unsigned int)(ctmp-1)]); *ts = ctmp; -- cgit v1.2.3