From 40485a8f99c7bc39e920186ce745339c546f3b4b Mon Sep 17 00:00:00 2001 From: _N0x Date: Wed, 13 Oct 2021 16:53:39 +0200 Subject: [PATCH] implemented statuspadding patch to have some inner padding on the statusbar --- dwm-6.2/config.def.h | 2 ++ dwm-6.2/dwm.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dwm-6.2/config.def.h b/dwm-6.2/config.def.h index 1e7d06a..bc9d8b5 100644 --- a/dwm-6.2/config.def.h +++ b/dwm-6.2/config.def.h @@ -13,6 +13,8 @@ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const int vertpad = 8; /* vertical padding of bar */ static const int sidepad = 8; /* horizontal padding of bar */ +static const int horizpadbar = 2; /* horizontal padding for statusbar */ +static const int vertpadbar = 6; /* vertical padding for statusbar */ static const char *fonts[] = { "MesloLGS NF:size=11" }; static const char dmenufont[] = "MesloLGS NF:size=11"; static const char dmenupromt[] = "Run:"; diff --git a/dwm-6.2/dwm.c b/dwm-6.2/dwm.c index 4851d3a..1994edf 100644 --- a/dwm-6.2/dwm.c +++ b/dwm-6.2/dwm.c @@ -1929,8 +1929,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(); sp = sidepad; vp = (topbar == 1) ? vertpad : - vertpad;