X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/a8f1ccafb8cc593670ddcda3f17ef83af8950a94..b133dc9212c5d15d32757135d46d28481bffac4f:/bin/dpass?ds=sidebyside diff --git a/bin/dpass b/bin/dpass index e8f446a..c37942b 100755 --- a/bin/dpass +++ b/bin/dpass @@ -1,6 +1,8 @@ #!/bin/sh +. ~/bin/.check-busybox p="$1" -if [ -z "$p" -a "$(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