Skip to content

Instantly share code, notes, and snippets.

@lwilli
Last active October 25, 2020 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lwilli/c012973e67ef32393a5f85f6a25729ec to your computer and use it in GitHub Desktop.
Save lwilli/c012973e67ef32393a5f85f6a25729ec to your computer and use it in GitHub Desktop.
A simple Mac script for 20-20-20 rule reminders
#!/bin/bash
while :
do
sleep 1200
osascript -e 'display notification "" with title "Take a 20 second break."'
sleep 20
osascript -e 'display notification "" with title "Break time is over!"'
done
@lwilli
Copy link
Author

lwilli commented Oct 25, 2020

For a smarter and more elegant solution, check out the Mac menu bar app: 202020 Timer.

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