commit 4e4b259acf30ace5c44d613b7137d87572d4685f
parent 4a377f0fdcf61d6ce654c77380bdfce4465ba9bc
Author: rid9 <rid99@protonmail.com>
Date: Mon, 18 Nov 2019 18:55:45 +0200
[dwm][patch][dmenumatchtop] Added dwm patch dmenumatchtop
Diffstat:
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/dwm.suckless.org/patches/dmenumatchtop/dwm-dmenumatchtop-6.2.diff b/dwm.suckless.org/patches/dmenumatchtop/dwm-dmenumatchtop-6.2.diff
@@ -0,0 +1,12 @@
+diff -up dwm-6.2-original/config.def.h dwm-6.2-modified/config.def.h
+--- dwm-6.2-original/config.def.h 2019-02-02 14:55:28.000000000 +0200
++++ dwm-6.2-modified/config.def.h 2019-11-18 17:46:56.829143140 +0200
+@@ -56,7 +56,7 @@ static const Layout layouts[] = {
+
+ /* commands */
+ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
+-static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
++static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, topbar ? NULL : "-b", NULL };
+ static const char *termcmd[] = { "st", NULL };
+
+ static Key keys[] = {
diff --git a/dwm.suckless.org/patches/dmenumatchtop/index.md b/dwm.suckless.org/patches/dmenumatchtop/index.md
@@ -0,0 +1,19 @@
+dmenumatchtop
+=============
+
+Description
+-----------
+Updates the position of dmenu to match that of `topbar`. If `topbar` is `0`,
+then dmenu will appear at the bottom, and if `topbar` is `1`, dmenu will appear
+at the top.
+
+The patch modifies `config.def.h`. Make sure to update `config.h` accordingly,
+if the file exists.
+
+Download
+--------
+* [dwm-dmenumatchtop-6.2.diff](dwm-dmenumatchtop-6.2.diff)
+
+Author
+------
+* rid9 <rid99@protonmail.com>