diff --git a/pomodoroprompt.py b/pomodoroprompt.py index 9424d49..ef77de5 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -13,7 +13,7 @@ WORK_MIN = 25 # Minutes for a work session SHORT_MIN = 5 # Minutes for a short break LONG_MIN = 15 # Minutes for a long break (NOT YET IMPLEMENTED) INTERRUPTED_MIN = 1 # Minimum minutes to ask to record an interrupted Pomodoro - +QUIET = False def pomodoro_prompt_plan(whatdid = ''): """ Ask about what task will be worked on (showing last thing worked on) @@ -107,7 +107,8 @@ def main(): try: print('Working on: ', whatnext) countdown_to(end) - playsound('res/timesup.aac') + if not QUIET: + playsound('res/timesup.aac') whatdid = pomodoro_prompt_report(whatnext) record_task(whatdid, start) log_step('Completed pomodoro: ' + whatdid, start, True) @@ -118,7 +119,8 @@ def main(): start = None end = datetime.now(pytz.utc) + timedelta(minutes=SHORT_MIN) countdown_to(end) - playsound('res/timesup.aac') + if not QUIET: + playsound('res/timesup.aac') continue except KeyboardInterrupt: if start is None: