It was found here: http://pastebin.com/a5WXs4gW
Code: Select all
#!/bin/bash
sleep 2
xdotool keydown z
sleep 0.05
xdotool keyup z
printf "\a"
sleep 0.73
int=0.60;
for i in {1..100000}; do
xdotool keydown z
sleep 0.05
xdotool keyup z
printf "\a"
if (($i==20)); then
int=0.455;
elif (($i==50)); then
int=0.392;
elif (($i==100)); then
int=0.350;
elif (($i==200)); then
int=0.3065;
elif (($i==300)); then
int=0.320;
fi
sleep $int
done