Is there any difference between these two sleep commands:


xdotool sleep 1


sleep 1



while :

        xdotool mousemove --sync 1000 500
        xdotool click 1

        xdotool sleep 2

        xdotool mousemove --sync 500 250
        xdotool click 1



Your script doesn't show the latter, but it would only affect the bash script, while xdotool sleep is intended to affect the X display. The script could in principle be issuing several requests to xdotool in the background, while xdotool is responsible for making X events out of those requests.

Further reading:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.