SafeEyes icon indicating copy to clipboard operation
SafeEyes copied to clipboard

Display "Next break" information as countdown instead of time?

Open badrihippo opened this issue 4 years ago • 3 comments

This is related to the suggestion in #16. Instead of showing the "next break" information as a fixed time ("Next break at 12:07 PM"), it would be helpful if I could see it as a countdown ("Next break in 7m" or "Next break in 45s"). This would help me quickly estimate how much time I have left, instead of having to look at the clock and calculate.

Constantly calculating the break time might be a performance issue, as mentioned in #76, but perhaps you could calculate the time just once while the menu is displayed (or better still, keep updating but only when the menu is visible)? It could be a separate plugin or toggleable feature in the settings.

badrihippo avatar Jan 24 '20 06:01 badrihippo

It would be very nice (like workrave do before) that we can see this count down on the tray pane. Or maybe there is a way to catch this information. I would like to implement a tmux plugin that show countdown it tmux status bar. Where should I start to do that ? Which safeEyes can help for that ? Thanks.

ranska avatar Mar 17 '20 16:03 ranska

Not sure how to implement it, but there are problems with displaying the countdowns on the tray pane, as mentioned in #76. Basically, we'd have to keep polling the countdown script which would cause unnecessary background load/processing.

Displaying it on the menu circumvents this, because it only has to poll it once, when the user clicks on the menu for the first time.

badrihippo avatar Apr 02 '20 09:04 badrihippo

Just adding some cents here as a regular user of safeeyes. I appreciate the feature request, but I much prefer to save on the resource usage and am quite content with just seeing the "next break time" when I click the icon.

Perhaps a good middle-ground solution to this would be to implement it as a plugin that polls once per minute and updates the tray icon or something. That way you could opt in and manage that functionality from the plugins menu.

kael-shipman avatar Apr 14 '20 23:04 kael-shipman