Adding nodmenu patch

This commit is contained in:
bakkeby
2019-10-24 08:03:00 +02:00
parent 4052783a63
commit d82be5a65d
4 changed files with 17 additions and 1 deletions

View File

@@ -488,8 +488,12 @@ 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
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
static const char *termcmd[] = { "st", NULL };
#if SCRATCHPAD_PATCH