Skip to content

Instantly share code, notes, and snippets.

@aheadley
Created October 22, 2013 20:43
Show Gist options
  • Save aheadley/7107770 to your computer and use it in GitHub Desktop.
Save aheadley/7107770 to your computer and use it in GitHub Desktop.
Spams the primary mouse click button for the given number of seconds, default is 75.
#!/bin/bash
RUNTIME=${1:-75}
start=$(date +%s)
while [ $(( $(date +%s) - $start )) -lt $RUNTIME ]; do
xdotool click --repeat 5 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment