add a delay to ydotool
This commit is contained in:
parent
0576a060cc
commit
2866ce2d23
|
@ -27,9 +27,9 @@ autotype(){
|
||||||
ydotool --delay 1 key esc
|
ydotool --delay 1 key esc
|
||||||
ydotool --delay 1 key {{@@ key.insertMode @@}}
|
ydotool --delay 1 key {{@@ key.insertMode @@}}
|
||||||
fi
|
fi
|
||||||
ydotool type "$username"
|
ydotool type --delay 100 "$username"
|
||||||
ydotool key tab
|
ydotool key tab
|
||||||
ydotool type "$password"
|
ydotool type --delay 100 "$password"
|
||||||
|
|
||||||
[ -n "$restoreKeyLayout" ] &&
|
[ -n "$restoreKeyLayout" ] &&
|
||||||
swaymsg input \* xkb_layout "$restoreKeyLayout"
|
swaymsg input \* xkb_layout "$restoreKeyLayout"
|
||||||
|
|
Reference in New Issue