Change timeout to handle slow web apps

This commit is contained in:
BarbUk 2021-06-18 13:49:01 +04:00
parent ca67e806a7
commit 92e2f9b8af
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE

6
snippy
View File

@ -386,11 +386,9 @@ run() {
# Paste into the current application.
if is_gui; then
# We need a little pause to handle the time to focus on the window
sleep 0.1
sleep 0.15
# Paste
xdotool key ctrl+v
# And another pause to empty the paste buffer before anything else
sleep 0.1
xdotool key ctrl+v sleep 0.15
move_cursor "Up" $cursor_line_position
else
xdotool key ctrl+shift+v