hovancik / stretchly

The break time reminder app
https://hovancik.net/stretchly
BSD 2-Clause "Simplified" License
4.53k stars 439 forks source link

[Feature request]: After natural break start activity counting after user interaction #1001

Open senpl opened 3 years ago

senpl commented 3 years ago

Version

Existing requests

What operating system are you using?

Linux

Operating System Version

Arch

Problem description

Currently timers start after break timer. But when I am not near computer this is not expected behaviour. Timer should start when any user inertaction is detected (Workrave do it this way).

Possible solution

Start timers when any users action is detected.

Alternative solutions

Alternatively when user is logged in to system (so when login screen is not present). but this is not that optimal as activity.

Additional information

Users want similar thing in https://github.com/hovancik/stretchly/issues/522 . Still some automation of this is better then clicking start every time.

Code of Conduct

hovancik commented 3 years ago

How is your idle time detection setup?

For me, on macOS, all work as expected (default preferences):

[2021-07-16 15:53:31.730] [info]  Stretchly: skipping to Long Break
[2021-07-16 15:53:32.599] [info]  Stretchly: showing window 1 of 1
[2021-07-16 15:53:32.601] [info]  Stretchly: starting Long Break
[2021-07-16 15:59:32.616] [info]  Stretchly: finishing Long Break
[2021-07-16 15:59:33.241] [info]  Stretchly: pausing breaks because of idle time
[2021-07-16 16:01:07.747] [info]  Stretchly: resuming breaks after idle time
senpl commented 3 years ago

I guess natural break starts without idle check.

hovancik commented 3 years ago

What do you mean? Natural break starts only after some specific idle time: https://github.com/hovancik/stretchly#natural-breaks-inactivity-time-

hovancik commented 3 years ago

Also, https://github.com/hovancik/stretchly#linux-note:

For Natural breaks, you might need some packages too (libxss-dev).

senpl commented 3 years ago

Ok. I guess I just not like that counter starts after natural break. After normal break it's just wait for interaction. I guess same should be after natural break. This would be consistent, but as always it could be optional.

hovancik commented 3 years ago

Ok. I guess I just not like that counter starts after natural break. After normal break it's just wait for interaction. I guess same should be after natural break. This would be consistent, but as always it could be optional.

What do you mean? I am not sure

senpl commented 3 years ago

What do you mean? I am not sure

I just want natural break to not start counting before first user action. They seem purely time depending.

hovancik commented 2 years ago

I get count from OS, it's not something that Stretchly counts itself.

dex3r commented 1 year ago

Currently timers start after break timer. But when I am not near computer this is not expected behaviour. Timer should start when any user inertaction is detected

I would like to see it as well. When break starts, I leave the desk and don't come back after exactly the break time. I would like to next work timer to start after the first interaction.

I want to look into implementing that myself, commenting here to remind myself.

qcol commented 1 year ago

Also, it seems to me that the break window should not automatically disappear after the designated time because the break sometimes lasts longer than the assumed 5 minutes. So shouldn't the break window disappear only after, for example, moving the mouse or clicking on the keyboard? Then it is known that I have returned and the time should be counted down again.