aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-05-23 15:20:33 -0700
committerFuwn <[email protected]>2024-05-23 15:20:33 -0700
commita595c03ca72de42e1669b1d181978d082a969f4a (patch)
tree29fc521d5bb442cfda1afc4e84c222278fdebae3
parentfeat(dwm.c): toggle bar on fullscreen toggle (diff)
downloadseiwm-a595c03ca72de42e1669b1d181978d082a969f4a.tar.xz
seiwm-a595c03ca72de42e1669b1d181978d082a969f4a.zip
feat(config.h): add bar height patch
-rw-r--r--config.h1
-rw-r--r--dwm.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/config.h b/config.h
index 2abafeb..38b098e 100644
--- a/config.h
+++ b/config.h
@@ -24,6 +24,7 @@ static int swallowfloating = 0; /* 1 means swallow floating windows by
static int smartgaps = 0; /* 1 means no outer gap when there is only one window */
static int showbar = 1; /* 0 means no bar */
static 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 int vertpad = 10; /* vertical padding of bar */
static const int sidepad = 30; /* horizontal padding of bar */
static char *fonts[] = { "Sarasa Term SC Nerd:size=11", "NotoColorEmoji:pixelsize=10:antialias=true:autohint=true" };
diff --git a/dwm.c b/dwm.c
index aa62aab..a037ebc 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2045,7 +2045,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();
sp = sidepad;
vp = (topbar == 1) ? vertpad : -vertpad;