tomighty / tomighty-osx

Tomighty for macOS
https://tomighty.github.io
Apache License 2.0
308 stars 80 forks source link

Screen lock implicitly pauses timer #65

Open alynn-coefficient opened 4 weeks ago

alynn-coefficient commented 4 weeks ago

Hello! When my screen is locked because I've left the machine (meeting, tea, whatever) the timer doesn't decrease, only continuing when the screen is once again unlocked. This throws me off my timings a bit, it would be grand if this could be either turned off or configurable.

ccidral commented 4 weeks ago

What is probably happening is your MacOS automatically sleeps after some time which is causing the timer to suspend. If you simply lock the screen the timer keeps running. I'm not an expert in MacOS programming but it seems to me there might not be a way to keep the timer running while the system sleeps.

There's an option called "Prevent automatic sleeping on power adapter when the display is off" under the Battery system settings, in case you want to try that.

Screenshot 2024-08-15 at 8 36 06 AM
alynn-coefficient commented 2 weeks ago

For instance if I start a 20 minute long break at 12:00 and my laptop were asleep from 12:02 to 12:18, I think it's still {reasonable, possible} for the timer to go off at 12:20 rather than 12:36, no?

ccidral commented 2 weeks ago

Got it, I agree, in that case the app should be able to correct the remaining time.