Fix shmenu_run

This commit is contained in:
Alexis Jhon Gaspar 2023-09-28 21:18:16 +08:00
parent ebadb8de62
commit ec53f34089
3 changed files with 16 additions and 1 deletions

13
scripts/shmenu/shmenu_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
scripts/shmenu/shmenu_run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
shmenu_path | shmenu

2
shmenu

@ -1 +1 @@
Subproject commit 3e6d31c80f6494e823f5ed0d4dcebd066807269d
Subproject commit 3e4cad8870fcc184e4494c7bf9489e93e1cee542