Skip to content

Instantly share code, notes, and snippets.

@solarsailer
Last active August 29, 2015 14:04
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save solarsailer/6328415616b485ff7bef to your computer and use it in GitHub Desktop.

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