This post is about a Pomodoro timer script that was created specifically for developers so they can have a break between work. Stay tuned with us.
- Error Handling
- exact time
- input management
- notification send
- Just run in Linux System
This code connects to your Linux terminal and implements the Pomodoro Rule, preventing fatigue while working.
python3 timer.py
import os
import time
while True:
os.system('notify-send "Time to have some tea or coffee and rest for a few minutes. Don't be tired"')
time.sleep(1500)**If your Linux operating system is not based on Windows: **
.You can change this part of the code.
os.system("sudo apt install python3-full")Otherwise, if you are on Windows, delete that line completely.
