X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/245313ba89372f26ac669889f5aee36de5c3ebb8..bf314d35d59a4b7bd8af1ab13cb11bf29cf9452e:/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