aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-xScripts/.local/scripts/timer8
1 files changed, 6 insertions, 2 deletions
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")