From b5e59328c20269d629a49bde522dba6aeeaa8c27 Mon Sep 17 00:00:00 2001 From: kishore2k05 Date: Tue, 12 May 2026 20:18:27 +0530 Subject: [PATCH] Add: Pomodoro Timer (Python CLI) --- .../buildOutputCleanup.lock | Bin 17 -> 17 bytes .../buildOutputCleanup/outputFiles.bin | Bin 19541 -> 19883 bytes pomodoro-Timer/README.md | 68 ++++++++++++++++ pomodoro-Timer/pomodoro.py | 77 ++++++++++++++++++ 4 files changed, 145 insertions(+) create mode 100644 pomodoro-Timer/README.md create mode 100644 pomodoro-Timer/pomodoro.py diff --git a/currencyconverter/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/currencyconverter/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 076335f5286d5fcfceddd82cde596ef617e2917b..63212036b0cde85af11294bbc706ac58d83a7068 100644 GIT binary patch literal 17 VcmZQxw|4oT?6=3?Gk^hO1OQ6!25A5Q literal 17 VcmZQxw|4oT?6=3?Gk^i3GXP5322=n5 diff --git a/currencyconverter/.gradle/buildOutputCleanup/outputFiles.bin b/currencyconverter/.gradle/buildOutputCleanup/outputFiles.bin index ac167451d8c5db759520d35c47caefd9269b6f1a..0f936dfaf37a0b01d42f72b6dfb6ace6f42d0d12 100644 GIT binary patch delta 469 zcmcaQgK_n2#tkMCjJ}giB@6^wD#}A2D6sEg00Up$$*~d&0^J%OQe32PcKe8 z8EU}g$-2@rGZK%lzo{YD)f z%a2gO^^ 0: + time.sleep(1) + + beep(3) + +def run(): + cycle = 0 + print("\n Welcome to Pomodoro Timer!") + print(f" Work: {WORK_MINS}m | Short break: {SHORT_BREAK}m | Long break: {LONG_BREAK}m\n") + input(" Press Enter to start your first session...") + + while True: + cycle += 1 + info = f"{cycle} / {CYCLES_BEFORE_LONG}" + countdown("🔴 FOCUS — Work Session", WORK_MINS, info) + print("\n ✅ Work session complete!\n") + + + if cycle % CYCLES_BEFORE_LONG == 0: + print(f" 🎉 {CYCLES_BEFORE_LONG} cycles done! Time for a long break.\n") + input(" Press Enter to start your long break...") + countdown("🟢 LONG BREAK", LONG_BREAK) + else: + input(" Press Enter to start your short break...") + countdown("🟡 SHORT BREAK", SHORT_BREAK) + + print("\n Break over! Ready for the next session?\n") + input(" Press Enter to continue...\n") + +if __name__ == "__main__": + try: + run() + except KeyboardInterrupt: + print("\n\n 👋 Session ended. Great work!\n") + sys.exit(0) \ No newline at end of file