diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-07-11 11:03:44 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-07-11 11:03:44 +0200 |
commit | dbe51b5fdf890e61d9cf4ecdef22af3f81b581fd (patch) | |
tree | de2636e54e97139680011b2aa96a17123c09cbbf /patches | |
parent | sxhkd: xmonad: Add xmobar toggle keybind (diff) | |
download | nixos-config-dbe51b5fdf890e61d9cf4ecdef22af3f81b581fd.tar.gz nixos-config-dbe51b5fdf890e61d9cf4ecdef22af3f81b581fd.tar.bz2 nixos-config-dbe51b5fdf890e61d9cf4ecdef22af3f81b581fd.zip |
Patches: Modified dmenu height patch to increase relative height by 4
Diffstat (limited to 'patches')
-rw-r--r-- | patches/dmenu_height.patch | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/patches/dmenu_height.patch b/patches/dmenu_height.patch index 1eacfb3..acda047 100644 --- a/patches/dmenu_height.patch +++ b/patches/dmenu_height.patch @@ -1,13 +1,13 @@ -diff --git a/config.h b/config.h -index 625b1a4..0a61072 100644 ---- a/config.h -+++ b/config.h -@@ -38,7 +38,7 @@ static const unsigned int alphas[][2] = { - }; - /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ - static unsigned int lines = 0; --static unsigned int lineheight = 0; /* -h option; minimum height of a menu line */ -+static unsigned int lineheight = 22; /* -h option; minimum height of a menu line */ +diff --git a/dmenu.c b/dmenu.c +index 0f7d5dd..50012fa 100644 +--- a/dmenu.c ++++ b/dmenu.c +@@ -867,7 +867,7 @@ setup(void) + dock = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DOCK", False); - /* - * Characters not considered part of a word while deleting words + /* calculate menu geometry */ +- bh = drw->fonts->h + 2; ++ bh = drw->fonts->h + 4; + bh = MAX(bh,lineheight); /* make a menu line AT LEAST 'lineheight' tall */ + lines = MAX(lines, 0); + mh = (lines + 1) * bh; |