summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsxv478 <vt0451@yandex.ru>2023-02-14 17:40:59 +0300
committertsxv478 <vt0451@yandex.ru>2023-02-14 17:40:59 +0300
commitfb5c73335f08eb8a908351fbba6888e72ac7326a (patch)
tree6b29d08858956adcfd7936943c2f38999b4c09d8
parent11e9ab8ea9ac35dcbc52869a9780d3e66845a72c (diff)
bar height variable
-rw-r--r--config.def.h1
-rw-r--r--dwm.c2
2 files changed, 2 insertions, 1 deletions
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);