X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/d217a7b611954f0f8ee5179044728e4e132bb78f..1ef46e010e2dc017f60cddfabf6e669a0469ef3f:/bin/dpass?ds=sidebyside diff --git a/bin/dpass b/bin/dpass index 3dc4c8f..c37942b 100755 --- a/bin/dpass +++ b/bin/dpass @@ -1,6 +1,8 @@ #!/bin/sh +. ~/bin/.check-busybox p="$1" -if [ -z "$p" -a "$(basename "$(readlink -f "$(which ps)")")" =~ "/busybox" ]; then +if [ -z "$p" ] && ! check-busybox ps; then p="[$(ps -o comm= -p $(ps -o ppid= -p $$))]"; fi ~/bin/dmenu -p "$p" -fn Dina-10 -nb \#110800 -nf \#110800 -sb \#264bd2 -sf \#fdf6e3 <&- +unset check-busybox