Last active
April 18, 2016 17:22
-
-
Save mercul3s/f918db8da48fb3edeacc to your computer and use it in GitHub Desktop.
Motivator for exercise in my day
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 | |
# Pick a random mac voice out of the list below, and then pick a random action to say. | |
voices=( | |
Alex | |
Bells | |
Bruce | |
Cellos | |
Daniel | |
Fiona | |
Karen | |
Kathy | |
Moira | |
Tessa | |
Veena | |
Vicki | |
Victoria | |
) | |
# pick a random action. TODO: randomize the yoga poses. | |
actions=( | |
"You should stand up at your desk" | |
"You should do 5 push ups" | |
"You should try to do 2 pull ups" | |
"Now is a good time for a yoga break. Do a sun salutation." | |
"Time to do 20 crunches" | |
) | |
time=$(date "+%H:%M:%S") | |
say -v ${voices[$(( RANDOM % 15 ))]} "The time is now $time. ${actions[$(( RANDOM % 4 ))]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment