diff options
author | tsxv478 <vt0451@yandex.ru> | 2023-02-14 17:40:59 +0300 |
---|---|---|
committer | tsxv478 <vt0451@yandex.ru> | 2023-02-14 17:40:59 +0300 |
commit | fb5c73335f08eb8a908351fbba6888e72ac7326a (patch) | |
tree | 6b29d08858956adcfd7936943c2f38999b4c09d8 | |
parent | 11e9ab8ea9ac35dcbc52869a9780d3e66845a72c (diff) |
bar height variable
-rw-r--r-- | config.def.h | 1 | ||||
-rw-r--r-- | dwm.c | 2 |
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"; @@ -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); |