X=20 Y=130 SLEEP=0.1 while true; do xdotool click 3; sleep $SLEEP; xdotool mousemove_relative $X $Y; sleep $SLEEP; xdotool click 1; xdotool mousemove_relative -- -$X -$Y; done;