Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions take_a_break/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Using take a break script

### This program will take a break in your computer.
### For every two hours youtube.com will open in your browser for a period of 3 breaks
12 changes: 12 additions & 0 deletions take_a_break/TakeABreak.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import webbrowser
import time

total_breaks = int(3)
break_count = int(0)

print("This program started on" + time.ctime())

while break_count < total_breaks:
time.sleep(int(2) * int(60) * int(60))
webbrowser.open("http://www.youtube.com")
break_count += int(1)