Add dmenu_path and dmenu_run again (it's required)

This commit is contained in:
Alexis Jhon Gaspar 2023-09-08 17:58:01 +08:00
parent 103768205c
commit e29a2c9b93
4 changed files with 15 additions and 2 deletions

2
dmenu/.gitignore vendored
View file

@ -1,6 +1,4 @@
*.o
dmenu
dmenu_path
dmenu_run
stest
config.h

13
dmenu/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
dmenu/dmenu_run Executable file
View file

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

BIN
dwm/Kaiosrt_ubuntu.tar.bz2 Normal file

Binary file not shown.