Skip to content

Instantly share code, notes, and snippets.

@pas-calc
Created April 28, 2021 20:26
Show Gist options
  • Save pas-calc/501e28f021613046c90e13667b32c6d6 to your computer and use it in GitHub Desktop.
Save pas-calc/501e28f021613046c90e13667b32c6d6 to your computer and use it in GitHub Desktop.
Bash simple command to execute command at specific time
# example: Press key combination to quit Kazam screen recorder (adapt command as wanted)
while true; do echo 'Hit CTRL+C'; sleep 1; if date +%H%M | grep -q "1430"; then echo "exit" && date && xdotool key Control_L+Super_L+f && break; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment