Here’s a simple terminal-based Pomodoro timer implemented in Python. It uses basic time functions and prints updates directly to the terminal.
How it works:
-
Runs a work session (default 25 minutes),
-
Then short breaks (default 5 minutes),
-
After 4 cycles, a long break (default 15 minutes) happens,
-
Displays countdown timer updating every second in the terminal,
-
Clears screen between sessions for clarity.
You can customize the durations and number of cycles by changing arguments in pomodoro_timer()
.
Run this in your terminal:
Would you like me to add sound alerts or more features like pause/resume?
Leave a Reply