X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/1390d0285583db13842b2fc8d96c3b8b4af02dfd..abd1eae8291c91fe62bcf22fc15a93178f1ab491:/bin/dpass?ds=sidebyside 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