We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 786c82c commit 617b849Copy full SHA for 617b849
1 file changed
eye_blink_reminder/eye_blink_reminder.py
@@ -1,25 +1,23 @@
1
import os
2
import playsound
3
-import time
4
from time import sleep
5
-import sys
6
import multiprocessing
7
8
9
def remind():
10
- startTime = time.time()
11
- while True:
12
- sleep(20*60)
13
- os.popen('osascript -e "set Volume 6"')
14
- p = multiprocessing.Process(target=playsound.playsound, args=("danger.mp3",))
15
- p.start()
16
- inp = input('Dismiss? y|n')
+ while True:
+ sleep(20*60)
+ os.popen('osascript -e "set Volume 6"')
+ p = multiprocessing.Process(
+ target=playsound.playsound, args=("danger.mp3",))
+ p.start()
+ inp = input('Dismiss? y|n')
17
18
- if inp == 'y':
19
- print("yes")
20
- p.terminate()
21
- continue
+ if inp == 'y':
+ print("yes")
+ p.terminate()
+ continue
22
23
24
if __name__ == "__main__":
25
- remind()
+ remind()
0 commit comments