mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
25 lines
1.2 KiB
Diff
25 lines
1.2 KiB
Diff
diff --git a/config.def.h b/config.def.h
|
|
index 8f4b5ae..7a5016b 100644
|
|
--- a/config.def.h
|
|
+++ b/config.def.h
|
|
@@ -7,6 +7,7 @@ static const unsigned int gappx = 10; /* default gap between windows i
|
|
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 = 0; /* 0 means that dwm will calculate bar height, >= 1 means dwm willcalculate bar height, >= 1 means dwm will user_bh as bar height */
|
|
static const int focusonwheel = 0;
|
|
static const int vertpad = 10; /* vertical padding of bar */
|
|
static const int sidepad = 10; /* horizontal padding of bar */
|
|
diff --git a/dwm.c b/dwm.c
|
|
index 1c2c58c..f2308be 100644
|
|
--- a/dwm.c
|
|
+++ b/dwm.c
|
|
@@ -1655,7 +1655,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 = user_bh ? user_bh : drw->fonts->h + 2;
|
|
sp = sidepad;
|
|
vp = (topbar == 1) ? vertpad : - vertpad;
|
|
updategeom();
|