eonpatapon / gnome-shell-extension-caffeine

Disable screensaver and auto suspend
GNU General Public License v2.0
572 stars 107 forks source link

longer timers #296

Closed boyska closed 2 months ago

boyska commented 1 year ago

The default timers seems to have very low values. The shortest one is 5 minutes. Now, if I wanted to keep computer awake for 5 more minutes, wasn't it enough to move the mouse?

My usecase for caffeine is listening to music and leaving the computer unattended. In that scenario, what I need is something like 2h caffeine mode, while the longest one is 30 minutes.

Since there is no way to customize the duration, can you at least increase the default timers?

stuarthayhurst commented 1 year ago

Which version of Caffeine are you running? The version in master has support for customisation: image

I can't remember if this has made it to a release or not yet, but a new one should be coming out soonish, whenever the GNOME 45 port is merged.

boyska commented 1 year ago

Which version of Caffeine are you running? The version in master has support for customisation:

oh, that's nice! I'm using version 44-2 from debian bookworm.

stuarthayhurst commented 1 year ago

Ah, looking at the merge history, v45 was the first version to allow configuration, currently only Debian testing and unstable have v48. The latest version of master currently supports GNOME 43 and 44, since you're on Debian stable, this should be supported.

I don't know if it'll get backported, it seems unlikely as it's not a very important package, so you may be better off installing from source, or installing from https://extensions.gnome.org/extension/517/caffeine/ instead.

boyska commented 1 year ago

ok, thanks for clarifying what is compatible with what: I would have get confused otherwise :)

pakaoraki commented 1 year ago

This is the current range timers:

Let me knows if it need adjustment.

ghost commented 7 months ago

@pakaoraki I'm so sorry to bother you, but I was just wondering, why don't you support custom inputs, for example three input boxes next to each other.

Ana06 commented 7 months ago

I would like to have even a higher range timer. Some use cases:

An extra range timer with 30 minutes, 2 hours, 8 hours would fit this needs.

I also like the idea of custom inputs. In that case, I think it would be nice to show any multiple of 30 higher or equal than 60 in hours in the menu (example: 20 minutes , 30 minutes, 1 hour, 80 minutes, 1.5 hours, 4 hours, 260 minutes, 5.5 hours, 365 minutes).

In general, it would also be nice to display times as HH:MM:SS (instead of the current MM:SS) for times longer than an hour. Examples: 2:32, 12:32, 1:12:32, 11:12:32.

pakaoraki commented 7 months ago

I will propose a revamp with custom values:

Screenshot from 2024-03-05 23-05-36 resized

stuarthayhurst commented 7 months ago

I will propose a revamp with custom values:

Screenshot from 2024-03-05 23-05-36 resized

Ooh looks good, I'd be happy to review that if you submit a PR

pakaoraki commented 7 months ago

I'll try to PR this soon.