This commit is contained in:
Chris Cochrun 2022-04-11 17:33:12 -05:00
parent 85f24aaab6
commit fb4804311c
10 changed files with 97 additions and 77 deletions

View file

@ -66,16 +66,16 @@ fi
case ${option} in
Password )
echo "${SECRET}"
xdotool type $(rbw get "${SECRET}")
ydotool type --key-delay 6ms $(rbw get "${SECRET}")
;;
User )
echo "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
xdotool type "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
ydotool type --key-delay 6ms "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
;;
"User and password" )
xdotool type $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')
xdotool key Tab
xdotool type $(rbw get "${SECRET}")
ydotool type --key-delay 6ms $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')
ydotool key 15:1 15:0
ydotool type --key-delay 6ms $(rbw get "${SECRET}")
;;
"QR-Code" )
if [[ $SECRET =~ wifi$ ]]; then
@ -90,7 +90,7 @@ case ${option} in
fi
;;
OTP )
xdotool type $(rbw code "${SECRET}")
ydotool type --key-delay 6ms $(rbw code "${SECRET}")
;;
esac