Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to change inactivity timer [feature request] #120

Open
yimyamyum opened this issue Dec 22, 2018 · 4 comments
Open

Option to change inactivity timer [feature request] #120

yimyamyum opened this issue Dec 22, 2018 · 4 comments
Labels
feature New feature or request

Comments

@yimyamyum
Copy link

Issue #103 was how I learned that reading mode existed. It's great that we have that functionality (though I don't know if "Reading Mode" is descriptive enough for users to understand exactly what it entails).

However, the current implementation of the inactivity timer seems a bit one-size-fits-all. It's not hard to imagine going through the work day looking at code and documentation and not knowing when you might end up reading something for a half hour or more - and if you end up reading something longer than you thought you would and you don't bring up workrave and activate reading mode then you won't get prompted to take breaks.

A nice middle-ground would be a configurable inactivity timer. Then a user could set it to some value which exceeds the maximum number of seconds they would ever spend reading a single screen of text. Then they wouldn't need to activate reading mode to continue getting prompts for breaks, but they would still be able to walk away from the computer and have the break timers pause after a couple of minutes. Thanks for your consideration.

@Konzertheld
Copy link

I think the relevant line is

idle_threshold = 5 * workrave::utils::TimeSource::TIME_USEC_PER_SEC;
though it seems to set the inactivity threshold to 5 seconds while it really is 7 seconds so probably I did not understand it yet.

@Konzertheld
Copy link

I found that under Linux, you can set the idle time via dconf-editor. Find the value in milliseconds in org.workrave.monitor.idle.

@logixoul
Copy link

To add to @Konzertheld 's comment:
I found how to do the same under Windows.

  1. Exit WorkRave
  2. Create an empty file at location %appdata%\Workrave\workrave.ini
  3. Run WorkRave. Exit it again
  4. Open the aforementioned workrave.ini file
  5. in the "monitor" section in that file, add a new line that says "idle=123" without the quotes. The 123 value is in seconds - change it to whatever number you wish.
  6. Save the file and run WorkRave again.

That's all :)

However, after you do that, and a "micro break" prompt comes up, that prompt never detects that you've stopped using the PC, so you get the "disappointed lightbulb" face and the prompt times out.

So, something is missing in my solution. (probably because I'm using an undocumented feature here).

@MJBlack9000
Copy link

I am so glad I found this thread. Was looking for this functionality, as I often spend 10-20 seconds just starting at my screen, thinking of the next step to take. And that definitely isn't me having an eye-break.

@logixoul I think I also found out why you get a disappointed bulb showing up. Your idle is likely longer than the actual duration of the micro-break. And for Workrave to count your micro-break - you have to be idle at least for some time during it. But if, for example, the break duration is 10 seconds and your idle timer is 20 - you will usually not become idle before the micro-break runs out.
Neat find with the .ini file, by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants