switching to self built ydotool

This commit is contained in:
Chris Cochrun 2022-12-21 09:14:17 -06:00
parent d9cf8e32a7
commit 96c5af1ef7
6 changed files with 16 additions and 15 deletions

View file

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