add a delay to ydotool

This commit is contained in:
lelgenio 2020-10-18 13:38:52 -03:00
parent 0576a060cc
commit 2866ce2d23
1 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@ autotype(){
ydotool --delay 1 key esc
ydotool --delay 1 key {{@@ key.insertMode @@}}
fi
ydotool type "$username"
ydotool type --delay 100 "$username"
ydotool key tab
ydotool type "$password"
ydotool type --delay 100 "$password"
[ -n "$restoreKeyLayout" ] &&
swaymsg input \* xkb_layout "$restoreKeyLayout"