Skip to content

Instantly share code, notes, and snippets.

@mercul3s
Last active April 18, 2016 17:22
Show Gist options
  • Save mercul3s/f918db8da48fb3edeacc to your computer and use it in GitHub Desktop.
Save mercul3s/f918db8da48fb3edeacc to your computer and use it in GitHub Desktop.
Motivator for exercise in my day
#!/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