1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-29 03:21:31 +00:00

patch dmenu

This commit is contained in:
horhik 2020-07-29 11:40:04 +03:00
parent d195b367b7
commit 851b754d23
3 changed files with 15 additions and 0 deletions

BIN
bin/dmenu Executable file

Binary file not shown.

13
bin/dmenu_path Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
cache="$cachedir/dmenu_run"
[ ! -e "$cachedir" ] && mkdir -p "$cachedir"
IFS=:
if stest -dqr -n "$cache" $PATH; then
stest -flx $PATH | sort -u | tee "$cache"
else
cat "$cache"
fi

2
bin/dmenu_run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &