summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--dmenu_exclude23
-rwxr-xr-xdmenu_run2
3 files changed, 27 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a03a95c..635cb5e 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ clean:
dist: clean
mkdir -p dmenu-$(VERSION)
cp LICENSE Makefile README arg.h config.def.h config.mk dmenu.1\
- drw.h util.h dmenu_path dmenu_run stest.1 $(SRC)\
+ drw.h util.h dmenu_path dmenu_run dmenu_exclude stest.1 $(SRC)\
dmenu-$(VERSION)
tar -cf dmenu-$(VERSION).tar dmenu-$(VERSION)
gzip dmenu-$(VERSION).tar
@@ -42,7 +42,7 @@ dist: clean
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
- cp -f dmenu dmenu_path dmenu_run stest $(DESTDIR)$(PREFIX)/bin
+ cp -f dmenu dmenu_path dmenu_run dmenu_exclude stest $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu
chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu_path
chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu_run
@@ -57,6 +57,7 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/dmenu\
$(DESTDIR)$(PREFIX)/bin/dmenu_path\
$(DESTDIR)$(PREFIX)/bin/dmenu_run\
+ $(DESTDIR)$(PREFIX)/bin/dmenu_exclude\
$(DESTDIR)$(PREFIX)/bin/stest\
$(DESTDIR)$(MANPREFIX)/man1/dmenu.1\
$(DESTDIR)$(MANPREFIX)/man1/stest.1
diff --git a/dmenu_exclude b/dmenu_exclude
new file mode 100644
index 0000000..d2a9f15
--- /dev/null
+++ b/dmenu_exclude
@@ -0,0 +1,23 @@
+4chget
+dc
+du
+mount
+umount
+tr
+trash
+pic
+picom
+pass
+start-pulseaudio-x11
+startx
+stat
+stdbuf
+stest
+stream
+stramzip
+strings
+strip
+stty
+w
+xev
+yt-dlp
diff --git a/dmenu_run b/dmenu_run
index 834ede5..2cbf733 100755
--- a/dmenu_run
+++ b/dmenu_run
@@ -1,2 +1,2 @@
#!/bin/sh
-dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
+dmenu_path | grep -vw -f /usr/local/bin/dmenu_exclude | dmenu "$@" | ${SHELL:-"/bin/sh"} &