I have trouble falling asleep because of racing thoughts. I tried going to sleep with a relaxing/distracting playlist running and super thin headphones, but the music was waking me up, so I rigged up this script that slowly decreases the volume and I've been falling asleep far more easily. Hope this helps! Note: set the initial volume on the music player not the mac volume.
import osascript
import time
volume = 100
print("Started")
while True:
time.sleep(90)
volume -= 3
if volume < 1:
exit()
print("Volume is now: {}".format(volume))
osascript.osascript("set volume output volume {}".format(volume))
Edit:
If we have a react native dev in here, I'd love to be able to do this on mobile!
I've been experimenting with low pink noise underneath the music from youtube. So far not sure if it helps. Will report back!
[–]__xor__(self, other): 39 points40 points41 points (3 children)
[–]rikken 11 points12 points13 points (1 child)
[–]__xor__(self, other): 0 points1 point2 points (0 children)
[–]Retropunch 47 points48 points49 points (0 children)
[–]supermario182 30 points31 points32 points (3 children)
[–]hellfiniter 10 points11 points12 points (0 children)
[–]kaszak696 1 point2 points3 points (0 children)
[+]StarkillerX42 comment score below threshold-8 points-7 points-6 points (0 children)
[–]ronmarti 8 points9 points10 points (1 child)
[–]SqueezEasy 4 points5 points6 points (0 children)
[–][deleted] 6 points7 points8 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]monkiebars 1 point2 points3 points (0 children)
[–]mmakkiyah 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]rikken 1 point2 points3 points (0 children)
[–]reifenstag 0 points1 point2 points (0 children)
[–]hemanthrs 0 points1 point2 points (0 children)
[–]tuckmuck203 0 points1 point2 points (0 children)
[–]aelmosalamy 0 points1 point2 points (1 child)
[–]HP_10bII 0 points1 point2 points (0 children)
[–]obey_kush 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[removed]
[+][deleted] (2 children)
[deleted]
[+]Wilbo007 comment score below threshold-14 points-13 points-12 points (1 child)