[FEATURE] Enable separate Idle settings for battery and AC power
Submission checklist
- [x] I have searched existing issues and confirmed this has not been requested before.
- [x] I have checked existing pull requests for similar changes.
Feature type
Configuration / customization
Feature summary
Currently in the Noctalia settings for Idle behaviour there is no way to have different settings for when "on AC Power" and "on battery". Most other desktop environments/shells I've used have separate settings for these since many people would want different settings. For example, I'd like suspend to happen on battery after maybe an hour, but never on AC power
Motivation / use case
It allows the user to have different settings for different types of power situation - AC power and battery.
Proposed solution
I would suggest making the settings differentiate between an on-AC-power situation and a battery-is-discharging situation and allow the user different setting for these. It could perhaps be implemented in another tab of the Idle settings section.
Alternatives considered
I have a workaround via script on my current machine, but it would be better if this was integrated into Noctalia.
References / related projects
No response
Additional context
If a PR would be welcome I'd be happy to discuss Noctalia team's preferred way to implement and do it for you.
I agree it would be very nice to have this kind of behavior built in.
Previously I would keep multiple hypridle.confs for laptop vs desktop, but with noctalia that isn't as doable.
i would have open this request, found it. So here to ask the same feature.
This is essential on laptops and available on all linux DE, Windows and MacOS There is an existing PR https://github.com/noctalia-dev/noctalia/pull/4064
Its not a fix, but a workaround, you can use noctalia msg config-set together with hooks to emulate that behaviour.
https://docs.noctalia.dev/noctalia/v5.6.0/ipc/shell/ https://docs.noctalia.dev/noctalia/v5.6.0/automation/hooks/
I also miss that feature.