Created
February 23, 2015 03:09
-
-
Save bmaca/0895ed1b9ae6054a1208 to your computer and use it in GitHub Desktop.
A python program to remind you to take a break every hour on your 8 hour work shift ;)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import webbrowser | |
total_breaks = 8 | |
break_count = 0 | |
while (break_count < total_breaks): | |
time.sleep(3600) | |
webbrowser.open("https://31.media.tumblr.com/288d6e631cd930de65547ef5044fefb8/tumblr_mlksb86paT1qbuvyto1_500.gif") | |
break_count = break_count + 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you could also use cron so you dont have to keep this program running all the time.