rafaelmardojai / blanket

Listen to different sounds
GNU General Public License v3.0
1.38k stars 103 forks source link

Sleep timer #243

Open winghongchan opened 2 years ago

winghongchan commented 2 years ago

My old clock radio had it: a “sleep” timer that automatically stops the sound after a chosen amount of time.

Seeing that one use case of this app is “to fall asleep in a noisy environment,” I think it makes sense to include a sleep timer.

Beyond stopping the sound, maybe it could offer to turn off the computer sometime after the sleep timer has elapsed? (Not immediately, in case the sleeper did not successfully fall asleep and would like to add some time. Also warn the user that any alarms set on the computer cannot ring when the computer is off.)

daudix commented 2 years ago

I really want to see this feature!

Izaic commented 2 years ago

This is a great idea, though I feel just letting the computer suspend on it's own would be best. That way if a user has an alarm set, it would still go off. And of course, when the sounds are playing for the set amount of time, it would inhibit suspend.

J-Kappes commented 1 year ago

Optimally, one would have the option to

  1. take no action
  2. suspend
  3. shut down upon completing the timer.

Also buttons and shortcuts to add/subtract 15 minutes to the timer. Also a one-minute fade-out approaching the end of the timer.