stretchly icon indicating copy to clipboard operation
stretchly copied to clipboard

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

Open senpl opened this issue 4 years ago • 11 comments

Version

  • [X] I'm using version 1.7.0

Existing requests

  • [X] I've checked 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

  • [X] I agree to follow this project's Code of Conduct

senpl avatar Jul 14 '21 10:07 senpl

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

hovancik avatar Jul 16 '21 14:07 hovancik

I guess natural break starts without idle check.

senpl avatar Jul 16 '21 18:07 senpl

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

hovancik avatar Jul 17 '21 08:07 hovancik

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

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

hovancik avatar Jul 17 '21 08:07 hovancik

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.

senpl avatar Jul 19 '21 04:07 senpl

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

hovancik avatar Sep 05 '21 11:09 hovancik

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.

senpl avatar Sep 05 '21 12:09 senpl

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

hovancik avatar Nov 27 '21 16:11 hovancik

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.

dex3r avatar May 09 '23 11:05 dex3r

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.

qcol avatar Aug 15 '23 08:08 qcol