mirror of
https://github.com/Horhik/dotfiles.git
synced 2025-03-20 12:39:30 +00:00
patch dmenu
This commit is contained in:
parent
d195b367b7
commit
851b754d23
3 changed files with 15 additions and 0 deletions
BIN
bin/dmenu
Executable file
BIN
bin/dmenu
Executable file
Binary file not shown.
13
bin/dmenu_path
Executable file
13
bin/dmenu_path
Executable 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
2
bin/dmenu_run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
|
Loading…
Add table
Reference in a new issue