Create a gist now

Instantly share code, notes, and snippets.

Application

Create an app with Automator that shows a notification and play a sound (available here).

Put it in your /Applications folder.

Scheduling

Type this in a shell:

crontab -e

Then, add these lines to the crontab:

# Every hour at 30 from 10h to 18h, on Mon-Friday, remind me to take a break.
30 10,11,14,15,16,17,18 * * 1,2,3,4,5 open /Applications/TakeBreak.app

Save the crontab and check the result:

crontab -l

Notification center

Set :

  • "Banner".
  • "Display in Notification Center" (at least "1 recent item").
  • "Play a sound for the notifications".

Disable the others.

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment