about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/sxhkd/base2
-rw-r--r--overlays/base/default.nix2
-rw-r--r--patches/dmenu_height.patch13
3 files changed, 16 insertions, 1 deletions
diff --git a/dotfiles/sxhkd/base b/dotfiles/sxhkd/base
index 08a143a..0a2b681 100644
--- a/dotfiles/sxhkd/base
+++ b/dotfiles/sxhkd/base
@@ -4,7 +4,7 @@ alt + Return
 
 # program launcher
 alt + d
-	dmenu_run -i -h 22
+	dmenu_run -i
 
 # exit menu
 alt + shift + e
diff --git a/overlays/base/default.nix b/overlays/base/default.nix
index f17e9e2..2336327 100644
--- a/overlays/base/default.nix
+++ b/overlays/base/default.nix
@@ -16,6 +16,8 @@ final: prev:
       rev = "4935902378d321c465f5f8ec18619b22da75527b";
       sha256 = "sha256-MyNMxdaWtgjClZGIHUtYwwx51u5NII5Ce4BnOnUojo8=";
     };
+
+    patches = [ ../../patches/dmenu_height.patch ];
   });
 
   st = prev.st.overrideAttrs (old: {
diff --git a/patches/dmenu_height.patch b/patches/dmenu_height.patch
new file mode 100644
index 0000000..1eacfb3
--- /dev/null
+++ b/patches/dmenu_height.patch
@@ -0,0 +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     */
+ 
+ /*
+  * Characters not considered part of a word while deleting words