summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMouad Alami <moadalami40@gmail.com>2023-04-24 23:23:46 +0100
committerMouad Alami <moadalami40@gmail.com>2023-04-24 23:23:46 +0100
commit7b260620e770659dec436a90ba9101d37017dc32 (patch)
treefbebb4854fc98bef77c82a3540eba589b4c2f7a0
parent6d5bbd5f668e4f4a238dade335b837f645a37239 (diff)
bar height patch
-rw-r--r--README2
-rw-r--r--config.h1
-rw-r--r--dwm.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/README b/README
index 482193e..18628fd 100644
--- a/README
+++ b/README
@@ -49,4 +49,4 @@ and (re)compiling the source code.
Patches applied
---------------
-zoomswap - scratchpad - sticky - statuscmd - pertag - noborder - movestack - hide vacant tags - actualfullscreen
+zoomswap - scratchpad - sticky - statuscmd - pertag - noborder - movestack - hide vacant tags - actualfullscreen - bar height
diff --git a/config.h b/config.h
index 7445d9b..74ee993 100644
--- a/config.h
+++ b/config.h
@@ -5,6 +5,7 @@ static const unsigned int borderpx = 2; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
+static const int user_bh = 2; /* 2 is the default spacing around the bar's font */
static const char *fonts[] = { "monospace:size=11",
"Noto Color Emoji:pixelsize=11:antialias=true:autohint=true"};
diff --git a/dwm.c b/dwm.c
index 580d92d..545d3d9 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1708,7 +1708,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 + user_bh;
updategeom();
/* init atoms */
utf8string = XInternAtom(dpy, "UTF8_STRING", False);