Skip to content

Instantly share code, notes, and snippets.

@mrrusof
Created December 30, 2016 02:54
Show Gist options
  • Select an option

  • Save mrrusof/30df845e29169c0c45910af3fe94d0c1 to your computer and use it in GitHub Desktop.

Select an option

Save mrrusof/30df845e29169c0c45910af3fe94d0c1 to your computer and use it in GitHub Desktop.
Poor man's pomodoro timer for OS X (or oxymoronic pomodoro timer)
alias timesup='osascript -e "tell application (path to frontmost application as text) to display dialog \"Time is up!\" buttons {\"OK\"} with icon stop"'
alias pomodoro-regular="i=0; while [ \$i -lt 25 ]; do sleep 60; (( i = i + 1 )); echo \$i minutes elapsed; done; timesup"
alias pomodoro-break="i=0; while [ \$i -lt 5 ]; do sleep 60; (( i = i + 1 )); echo \$i minutes elapsed; done; timesup"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment