diff options
| author | bakkeby <[email protected]> | 2019-11-26 19:54:00 +0100 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2019-11-26 15:54:03 +0100 |
| commit | 7d107ce8eb60f74acd3159b9efc0fbb500503694 (patch) | |
| tree | 37aafdb90236a4773972f6c41c02cadfc16e321c | |
| parent | 3b175a5387f58659c861aa1940f74bf9475a6266 (diff) | |
| download | dwm-flexipatch-7d107ce8eb60f74acd3159b9efc0fbb500503694.tar.gz dwm-flexipatch-7d107ce8eb60f74acd3159b9efc0fbb500503694.zip | |
Adding dmenumatchtop patch
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | config.def.h | 22 | ||||
| -rw-r--r-- | patches.h | 6 |
3 files changed, 29 insertions, 5 deletions
@@ -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 @@ -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. |
