From fb5c73335f08eb8a908351fbba6888e72ac7326a Mon Sep 17 00:00:00 2001 From: tsxv478 Date: Tue, 14 Feb 2023 17:40:59 +0300 Subject: bar height variable --- config.def.h | 1 + dwm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index abef4b0..abc19b4 100644 --- a/config.def.h +++ b/config.def.h @@ -12,6 +12,7 @@ static int enablegaps = 1; /* 1 means enable gaps on startu static int smartgaps = 0; /* 1 means no outer gap when there is only one window */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 0; /* 0 means bottom bar */ +static const int barheight = 2; /* 2 is the default spacing around the bar's font */ static const char *fonts[] = { "monospace:size=11" }; static const char dmenufont[] = "monospace:size=11"; static const char col_gray1[] = "#222222"; diff --git a/dwm.c b/dwm.c index 046b8bf..0e9bc70 100644 --- a/dwm.c +++ b/dwm.c @@ -1819,7 +1819,7 @@ setup(void) if (!drw_fontset_create(drw, fonts, LENGTH(fonts))) die("no fonts could be loaded."); lrpad = drw->fonts->h; - bh = drw->fonts->h + 2; + bh = drw->fonts->h + barheight; updategeom(); /* init atoms */ utf8string = XInternAtom(dpy, "UTF8_STRING", False); -- cgit v1.2.3