switched to dwm

This commit is contained in:
ISnortPennies 2022-09-30 14:46:28 -04:00
parent f543cd8e23
commit 20b8b3c80d
39 changed files with 8298 additions and 0 deletions

View file

@ -0,0 +1,25 @@
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();