fixing a lot of mpv schtuff

This commit is contained in:
Chris Cochrun 2023-01-05 12:00:56 -06:00
parent 649d3cc79a
commit b4f720cd72
9 changed files with 413 additions and 1242 deletions

View file

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