SafeEyes icon indicating copy to clipboard operation
SafeEyes copied to clipboard

Feature request: Yes/No buttons at the end of the break

Open snakeru opened this issue 2 years ago • 3 comments

The problem: I try to use SafeEyes to force myself to do a small exercise (say, 2-3 pull ups). However it is much easier to just wait these 40 seconds instead of going somewhere in that time.

Proposed solution: ask a question at the end of the break, provide Yes/No buttons as answer options. Make question text configurable. "Yes" button would just unlock the screen. The "No" button action could be configurable, but for the time being could just start the short break again.

Obviously, one could lie and click "Yes" even if he didn't do anything. There is nothing SafeEyes could do about that but it would help people that don't stand lies.

If you provide me with small hints - I could probably do that myself and then submit a pull request.

snakeru avatar May 07 '22 10:05 snakeru

A poor man's solution: I have edited the .po file to say "I did 3 pull ups" instead of "Skip", then compiled .po to .mo, made the breaks last 90 seconds and enabled skips :-)

snakeru avatar May 07 '22 18:05 snakeru

Hi @snakeru , Thank you for your feature request. It is a valid requirement and I am thinking about adding a plugin to ask this question at the end of a break (similar to the audible alert at the end of the break) and start the break again if the user clicks No.

However I don't have the bandwidth to implement it right now. I am working on Safe Eyes 3.0 from scratch (I started last year and then didn't get time to work on it. Now again I am working on Safe Eyes 3.0). Safe Eyes 3.0 will bring breaking changes to the plugin API. Therefore if your current workaround works for you, please continue using it. Once the Safe Eyes 3.0 is ready, we can work on this plugin.

slgobinath avatar May 10 '22 12:05 slgobinath

Some feedback after almost a week of trying out my solution:

  1. this strategy has significantly more effect than just locking the screen with instructions what to do. I now have a choice of either doing it and saving myself some time or just patiently waiting. Before I had to wait in any case so there was no incentive.

  2. it would probably be even better if there were several buttons allowing me to tweak time until next break. My current ex-Skip button says "I did N pull ups" and I define N in the lock screen message. For example I could have had buttons "I did it" and "I did twice that" setting different rewards for them.

Thank you!

snakeru avatar May 13 '22 10:05 snakeru