diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | dmenu_exclude | 9 | ||||
-rwxr-xr-x | dmenu_run | 2 |
4 files changed, 16 insertions, 4 deletions
@@ -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,10 +42,11 @@ 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 + chmod 644 $(DESTDIR)$(PREFIX)/bin/dmenu_exclude chmod 755 $(DESTDIR)$(PREFIX)/bin/stest mkdir -p $(DESTDIR)$(MANPREFIX)/man1 sed "s/VERSION/$(VERSION)/g" < dmenu.1 > $(DESTDIR)$(MANPREFIX)/man1/dmenu.1 @@ -57,6 +58,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 @@ -12,7 +12,8 @@ source: `git clone https://git.suckless.org/dmenu` 2. <b>Fonts</b> - JetBrains mono and Joypixels 3. <b>Xresources patch</b> and changes in dmenu.c for consistent colorschemes -4. <b>Additional patches:</b> [<i>source</i>](https://tools.suckless.org/dmenu/patches/) +4. <b> dmenu_exclude</b> removes dmenu options for dmenu_run. Useful to include terminal only commands and/or eliminating highpriority options that may interfere with the intended one +5. <b>Additional patches:</b> [<i>source</i>](https://tools.suckless.org/dmenu/patches/) - <b>Password patch</b> (-P) - uses asterisks '*' instead of dots '.' - <b>Highpriority patch</b> (-hp items) diff --git a/dmenu_exclude b/dmenu_exclude index a66c926..bcf0a83 100644 --- a/dmenu_exclude +++ b/dmenu_exclude @@ -1 +1,10 @@ +du +mount +umount +tr +trash pic +picom +btsnoop +xev + @@ -1,2 +1,2 @@ #!/bin/sh -dmenu_path | awk '$0!="pic"' |dmenu -H "${XDG_CACHE_HOME:-$HOME/.cache/}/dmenu_run.hist" "$@" | ${SHELL:-"/bin/sh"} & +dmenu_path | grep -vw -f /usr/local/bin/dmenu_exclude |dmenu -H "${XDG_CACHE_HOME:-$HOME/.cache/}/dmenu_run.hist" "$@" | ${SHELL:-"/bin/sh"} & |