diff --git a/pomodoroprompt.py b/pomodoroprompt.py index ea8bc68..88771b4 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -3,6 +3,7 @@ import time from datetime import datetime, timedelta from pathlib import Path from pytz import timezone +from playsound import playsound import pytz import zenipy @@ -87,6 +88,7 @@ def main(): to_go = end-datetime.now(pytz.utc) print('\r', str_minutes(to_go), sep='', end='') time.sleep(1) + playsound('res/timesup.aac') whatdid = pomodoro_prompt_report(whatnext) record_task(whatdid, start) log_step('Completed pomodoro: ' + whatdid, start, True) @@ -100,6 +102,7 @@ def main(): to_go = end-datetime.now(pytz.utc) print('\r', str_minutes(to_go), sep='', end='') time.sleep(1) + playsound('res/timesup.aac') continue except KeyboardInterrupt: if start is None: diff --git a/requirements.txt b/requirements.txt index c0c24e4..15a5ae4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ pytz tzlocal zenipy +playsound diff --git a/res/timesup.aac b/res/timesup.aac new file mode 100644 index 0000000..68c1e8b Binary files /dev/null and b/res/timesup.aac differ