aboutsummaryrefslogtreecommitdiff
path: root/patches/dwm-remove-dmenu.diff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-05-22 13:01:50 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-05-22 14:01:36 +0530
commitd6b26ca37d23b233eb288205a2b6808741f4b00e (patch)
tree574459066de00ddaac4156af9bcc56c78da5ac5b /patches/dwm-remove-dmenu.diff
parenta74fcc1ad0764ff6de1043e15d2444a7f954082d (diff)
downloaddwm-d6b26ca37d23b233eb288205a2b6808741f4b00e.tar.gz
dwm-d6b26ca37d23b233eb288205a2b6808741f4b00e.tar.bz2
dwm-d6b26ca37d23b233eb288205a2b6808741f4b00e.zip
Add patches to version control
Diffstat (limited to 'patches/dwm-remove-dmenu.diff')
-rw-r--r--patches/dwm-remove-dmenu.diff30
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/dwm-remove-dmenu.diff b/patches/dwm-remove-dmenu.diff
new file mode 100644
index 0000000..f0fac2a
--- /dev/null
+++ b/patches/dwm-remove-dmenu.diff
@@ -0,0 +1,30 @@
+From 6fc206cb7cce97f947d121b5ce80b665bcc37a6f Mon Sep 17 00:00:00 2001
+From: Aryadev Chavali <aryadev@aryadevchavali.com>
+Date: Wed, 22 May 2024 12:27:59 +0530
+Subject: [PATCH] [Patch] Remove dmenu functionality from DWM
+
+If using an external keyboard client such as sxhkdrc then dwm has no
+business or need to spawn something like dmenu.
+---
+ config.h | 2 --
+ dwm.c | 4 +---
+ 2 files changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/dwm.c b/dwm.c
+index a6aaace..af66670 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -1795,10 +1795,7 @@ sigchld(int unused)
+ void
+ spawn(const Arg *arg)
+ {
+- if (arg->v == dmenucmd)
+- dmenumon[0] = '0' + selmon->num;
+- else if (arg->v == statuscmd) {
++ if (arg->v == statuscmd) {
+ statuscmd[2] = statuscmds[statuscmdn];
+ setenv("BUTTON", lastbutton, 1);
+ }
+--
+2.45.0
+