X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/245313ba89372f26ac669889f5aee36de5c3ebb8..b133dc9212c5d15d32757135d46d28481bffac4f:/bin/dpass?ds=inline 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