Squashed 'suckless/dmenu/' content from commit 7175c48

git-subtree-dir: suckless/dmenu
git-subtree-split: 7175c4880bac3d2a2d4a6262b59193f0a38e2fdb
This commit is contained in:
Alejandro Guerrero 2026-09-27 17:52:02 +02:00
commit c888bafafb
16 changed files with 2010 additions and 0 deletions

13
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