From 9309f75ba079065f1487d81ab6c5d5dc90c7bff4 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 15 Nov 2020 15:01:51 +0100 Subject: Added nodmenu patch --- README | 1 + README.org | 1 + config.h | 3 +-- dwm.c | 2 -- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README b/README index b25e464..190e599 100644 --- a/README +++ b/README @@ -62,6 +62,7 @@ List of patches in use: - moveresize - movestack - noborder + - nodmenu - pertag - restartsig - sizehints diff --git a/README.org b/README.org index 0e570af..5c5b7dd 100644 --- a/README.org +++ b/README.org @@ -59,6 +59,7 @@ List of patches in use: - /moveresize/ - /movestack/ - /noborder/ +- /nodmenu/ - /pertag/ - /restartsig/ - /sizehints/ diff --git a/config.h b/config.h index 5c80632..336fe31 100644 --- a/config.h +++ b/config.h @@ -73,10 +73,9 @@ static const Layout layouts[] = { /* helper for spawning shell commands in the pre dwm-5.0 fashion */ #define SHCMD(cmd) { .v = (const char*[]){ "/usr/local/bin/dash", "-c", cmd, NULL } } -static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ /* commands */ static const char *termcmd[] = { "/usr/local/bin/st", NULL }; -static const char *dmenucmd[] = { "/usr/local/bin/dmenu_run", "-i", "-m", dmenumon, NULL }; +static const char *dmenucmd[] = { "/usr/local/bin/dmenu_run", "-i", "-m", "0", NULL }; static const char *dmpccmd[] = { "/home/jozan/.local/bin/dmpc", NULL }; static const char *vifmcmd[] = { "/usr/local/bin/st", "-e", "/usr/local/bin/vifm", NULL }; static const char *nvimcmd[] = { "/usr/local/bin/st", "-e", "/usr/local/bin/nvim", NULL }; diff --git a/dwm.c b/dwm.c index f5aab03..a875204 100644 --- a/dwm.c +++ b/dwm.c @@ -1905,8 +1905,6 @@ sigterm(int unused) void spawn(const Arg *arg) { - if (arg->v == dmenucmd) - dmenumon[0] = '0' + selmon->num; if (fork() == 0) { if (dpy) close(ConnectionNumber(dpy)); -- cgit v1.2.3