aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/timer
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-03-17 05:16:48 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-03-17 05:16:48 +0000
commitdda331ae9f55f1ffb224f54f5ff687c5737283ee (patch)
tree739351ef0d4a67833e34f2ec6f68c770ac60bc82 /Scripts/.local/scripts/timer
parentd0413b43d449e10fc8cd8d15d3b925608638e300 (diff)
downloaddotfiles-dda331ae9f55f1ffb224f54f5ff687c5737283ee.tar.gz
dotfiles-dda331ae9f55f1ffb224f54f5ff687c5737283ee.tar.bz2
dotfiles-dda331ae9f55f1ffb224f54f5ff687c5737283ee.zip
(Scripts)+time has finished prompt for timer
Diffstat (limited to 'Scripts/.local/scripts/timer')
-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")