summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--config.def.h22
-rw-r--r--patches.h6
3 files changed, 29 insertions, 5 deletions
diff --git a/README.md b/README.md
index 76bc114..e46fa04 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,8 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
### Changelog:
+2019-11-26 - Added dmenumatchtop patch
+
2019-11-21 - Added fakefullscreenclient patch
2019-10-24 - Added dragmfact, extrabar, exresize and nodmenu patches
@@ -117,6 +119,10 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
- [cyclelayouts](https://dwm.suckless.org/patches/cyclelayouts/)
- lets you cycle through all your layouts
+ - [dmenumatchtop](https://dwm.suckless.org/patches/dmenumatchtop)
+ - updates the position of dmenu to match that of the bar
+ - i.e. if topbar is 0 then dmenu will appear at the bottom and if 1 then dmenu will appear at the top
+
- [dragmfact](https://dwm.suckless.org/patches/dragmfact/)
- lets you resize the split in the tile layout (i.e. modify mfact) by holding the modkey and dragging the mouse
diff --git a/config.def.h b/config.def.h
index a45a9a8..536cef2 100644
--- a/config.def.h
+++ b/config.def.h
@@ -488,12 +488,24 @@ static const Layout layouts[] = {
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
-#if NODMENU_PATCH
-static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
-#else
+#if !NODMENU_PATCH
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
-static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
-#endif
+#endif // NODMENU_PATCH
+static const char *dmenucmd[] = {
+ "dmenu_run",
+ #if !NODMENU_PATCH
+ "-m", dmenumon,
+ #endif // NODMENU_PATCH
+ "-fn", dmenufont,
+ "-nb", normbgcolor,
+ "-nf", normfgcolor,
+ "-sb", selbgcolor,
+ "-sf", selfgcolor,
+ #if DMENUMATCHTOP_PATCH
+ topbar ? NULL : "-b",
+ #endif // DMENUMATCHTOP_PATCH
+ NULL
+};
static const char *termcmd[] = { "st", NULL };
#if SCRATCHPAD_PATCH
diff --git a/patches.h b/patches.h
index 83f60d5..734832e 100644
--- a/patches.h
+++ b/patches.h
@@ -115,6 +115,12 @@
*/
#define CYCLELAYOUTS_PATCH 0
+/* Updates the position of dmenu to match that of the bar. I.e. if topbar is 0 then dmenu
+ * will appear at the bottom and if 1 then dmenu will appear at the top.
+ * https://dwm.suckless.org/patches/dmenumatchtop
+ */
+#define DMENUMATCHTOP_PATCH 0
+
/* This patch lets you resize the split in the tile layout (i.e. modify mfact) by holding
* the modkey and dragging the mouse.
* This patch can be a bit wonky with other layouts, but generally works.