From 3d02d1e10a7ba0b4ec677fe78a5eb42a44287f2a Mon Sep 17 00:00:00 2001 From: Fabian Schmidt Date: Mon, 1 Jun 2020 19:40:00 +0200 Subject: [PATCH] Remove dmenu --- config.def.h | 4 +--- dwm.c | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config.def.h b/config.def.h index 1c0b587..9209561 100644 --- a/config.def.h +++ b/config.def.h @@ -55,13 +55,11 @@ static const Layout layouts[] = { #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* 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 *termcmd[] = { "st", NULL }; static Key keys[] = { /* modifier key function argument */ - { MODKEY, XK_p, spawn, {.v = dmenucmd } }, + { MODKEY, XK_p, spawn, SHCMD("j4-dmenu-desktop --dmenu=\"dmenu -i\"") }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, diff --git a/dwm.c b/dwm.c index 9fd0286..c843977 100644 --- a/dwm.c +++ b/dwm.c @@ -1640,8 +1640,6 @@ sigchld(int unused) void spawn(const Arg *arg) { - if (arg->v == dmenucmd) - dmenumon[0] = '0' + selmon->num; if (fork() == 0) { if (dpy) close(ConnectionNumber(dpy));