From dda331ae9f55f1ffb224f54f5ff687c5737283ee Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 17 Mar 2021 05:16:48 +0000 Subject: (Scripts)+time has finished prompt for timer --- Scripts/.local/scripts/timer | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Scripts/.local/scripts/timer') diff --git a/Scripts/.local/scripts/timer b/Scripts/.local/scripts/timer index f425703..e439523 100755 --- a/Scripts/.local/scripts/timer +++ b/Scripts/.local/scripts/timer @@ -22,11 +22,15 @@ if __name__ == '__main__': for i in range(1, study_duration + 1): sleep(60) - if i % 10 == 0: + if i == 0: + speak(f"Study time has finished") + elif i % 10 == 0: speak(f"{study_duration - i} minutes of study time left") speak("You can take a break now!") for i in range(1, gap_duration + 1): sleep(60) - if i % 10 == 0: + if i == 0: + speak(f"Gap time has finished") + elif i % 10 == 0: speak(f"{gap_duration - i} minutes of gap time left") -- cgit v1.2.3-13-gbd6f