Last active
November 24, 2022 22:52
-
-
Save welmends/12054e04e364605290de0e8755e22694 to your computer and use it in GitHub Desktop.
Periodically clicking with xdotool/cliclick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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