[fix] faster rbw script

This commit is contained in:
Chris Cochrun 2026-05-14 11:06:50 -05:00
parent 818e1f87a8
commit cd8d13c68e

View file

@ -40,15 +40,15 @@ echo $option
case ${option} in
Password )
echo "${SECRET}"
wtype -s 100 -d 50 $(rbw get "${SECRET}")
wtype -s 50 -d 10 $(rbw get "${SECRET}")
;;
User )
wtype -s 100 -d 50 $(rbw get --full "${SECRET}" | rg Username: | awk '{$1 = ""; print $0}')
wtype -s 50 -d 10 $(rbw get --full "${SECRET}" | rg Username: | awk '{$1 = ""; print $0}')
;;
"User and password" )
wtype -s 100 -d 50 $(rbw get --full "${SECRET}" | rg Username: | awk '{$1 = ""; print $0}')
wtype -s 100 -d 50 -P tab
wtype -s 100 -d 50 $(rbw get "${SECRET}")
wtype -s 50 -d 10 $(rbw get --full "${SECRET}" | rg Username: | awk '{$1 = ""; print $0}')
wtype -s 50 -d 10 -P tab
wtype -s 50 -d 10 $(rbw get "${SECRET}")
;;
"QR-Code" )
if [[ $SECRET =~ wifi$ ]]; then
@ -63,7 +63,7 @@ case ${option} in
fi
;;
"OTP" )
wtype -s 100 -d 50 $(rbw code "${SECRET}")
wtype -s 50 -d 10 $(rbw code "${SECRET}")
;;
esac