]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/dwm-menu
Huge tmux-fzf simplification with files quoting
[dotfiles.git] / bin / bin / dwm-menu
1 #!/bin/sh
2
3 DMENU=/home/stargrave/src/suckless/dmenu/dmenu
4 STEST=/home/stargrave/src/suckless/dmenu/stest
5
6 cache=/tmp/.dmenu_cache
7 export PATH=$HOME/bin:$HOME/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:
8 (
9         IFS=:
10         if $STEST -dqr -n "$cache" $PATH; then
11                 $STEST -flx $PATH | sort -u | tee "$cache" | $DMENU "$@"
12         else
13                 $DMENU "$@" < "$cache"
14         fi
15 ) | /bin/sh &