X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/f29cd56086ae36e7abad561ae32f0f063a1eac31..7ddca96da6e30ad4b5a05c4804bf11911bd671eb:/bin/dpass diff --git a/bin/dpass b/bin/dpass index a7dddb8..c37942b 100755 --- a/bin/dpass +++ b/bin/dpass @@ -1,6 +1,8 @@ #!/bin/sh +. ~/bin/.check-busybox p="$1" -if [ -z "$p" ]; 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