diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-07-06 11:59:26 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-07-06 11:59:26 +0200 |
commit | 13dd5472cf391a245bdc0994750d16d3ee650181 (patch) | |
tree | 5ad416a4c028d72c04007e483966a37ac2464def | |
parent | Xmonad/Xmobar: Add dwm style hidden active workspace icons (diff) | |
download | nixos-config-13dd5472cf391a245bdc0994750d16d3ee650181.tar.gz nixos-config-13dd5472cf391a245bdc0994750d16d3ee650181.tar.bz2 nixos-config-13dd5472cf391a245bdc0994750d16d3ee650181.zip |
Dmenu: Add patch to hardcode the height to cover xmobar
Diffstat (limited to '')
-rw-r--r-- | dotfiles/sxhkd/base | 2 | ||||
-rw-r--r-- | overlays/base/default.nix | 2 | ||||
-rw-r--r-- | patches/dmenu_height.patch | 13 |
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 |