kmac / mindfulnotifier

A simple mindfulness-based timer which displays a notification/reminder at user-defined intervals
GNU General Public License v3.0
47 stars 3 forks source link

Add 45 minutes period option #42

Closed daiwai closed 2 years ago

daiwai commented 2 years ago

It would be nice to have 45 as one of the minute options

kmac commented 2 years ago

Yeah I can try to add this in. I had this in before, but I was having some issues with where to align the 45m interval on startup so I gave up on it at the time. I'll just align it to something like the next 15 minute mark (i.e, :00, :15, :30, :45).

Note that for the time being you could set your schedule to random and use 45/45. It just won't be aligned on any particular start time.

daiwai commented 2 years ago

Thanks for the quick reply and the hint about the random mode, that works for my use case.

I can see how it is not immediately obvious how to auto-align the 45 schedule but I agree with you the next full quarter hour makes the most sense :+1:

kmac commented 2 years ago

I'm testing some changes here which would allow an arbitrary interval (to the minute). I think I have it but it needs more testing.

kmac commented 2 years ago

Period options now have granularity of a minute. Please let me know if you see issues with this since I usually run in random mode.