Skip to content

Instantly share code, notes, and snippets.

@welmends
Last active November 24, 2022 22:52
Show Gist options
  • Save welmends/12054e04e364605290de0e8755e22694 to your computer and use it in GitHub Desktop.
Save welmends/12054e04e364605290de0e8755e22694 to your computer and use it in GitHub Desktop.
Periodically clicking with xdotool/cliclick
#!/bin/bash
# xdotool
#xdotool click --repeat 10000 --delay 10000 1
# cliclick
while true
do
cliclick c:0,0
sleep 10
if date | grep '18:00'; then break; fi
done
pmset displaysleepnow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment