dwm

my customized dwm build
git clone git://git.hanetzok.net/dwm
Log | Files | Refs | README | LICENSE

commit 08fb664812eec2fcfbf19dfcd6eb72b0a2ef5e52
parent 37e9b2280b8123a01425975173ad80d7951bdd32
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Mon, 27 Oct 2025 12:33:21 +0100

apply statuspadding patch

Diffstat:
Mconfig.def.h | 2++
Mdwm.c | 8++++----
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -16,6 +16,8 @@ static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display static const int showsystray = 1; /* 0 means no systray */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ +static const int horizpadbar = 2; /* horizontal padding for statusbar */ +static const int vertpadbar = 3; /* vertical padding for statusbar */ static const char *fonts[] = { "monospace:size=10" }; static const char dmenufont[] = "monospace:size=10"; static char normbgcolor[] = "#222222"; diff --git a/dwm.c b/dwm.c @@ -927,8 +927,8 @@ 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 + 2; /* 2px extra right padding */ - drw_text(drw, m->ww - tw - stw, 0, tw, bh, lrpad / 2 - 2, stext, 0); + tw = TEXTW(stext); + drw_text(drw, m->ww - tw, 0, tw, bh, lrpad / 2, stext, 0); } resizebarwin(m); @@ -2081,8 +2081,8 @@ setup(void) drw = drw_create(dpy, screen, root, sw, sh); if (!drw_fontset_create(drw, fonts, LENGTH(fonts))) die("no fonts could be loaded."); - lrpad = drw->fonts->h; - bh = drw->fonts->h + 2; + lrpad = drw->fonts->h + horizpadbar; + bh = drw->fonts->h + vertpadbar; updategeom(); /* init atoms */ utf8string = XInternAtom(dpy, "UTF8_STRING", False);