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

[Feature Request] Charge state / power aware timeouts #50

Open
kittydoor opened this issue Dec 20, 2019 · 0 comments
Open

[Feature Request] Charge state / power aware timeouts #50

kittydoor opened this issue Dec 20, 2019 · 0 comments

Comments

@kittydoor
Copy link

I would like to configure swayidle to have separate timeouts depending on whether my device is running on battery power or is charging/doesn't have a battery.

This would let me have a long suspend time (like 2 hours) for my desktop or laptops currently charging and mounted to a display, while letting devices running on battery suspend quickly (like 30 minutes) to not waste their charge.

One edge case to consider is, if a device was on charge and the early/battery timeout has expired and was ignored, but then power cuts out. In my opinion, in this case, the device should immediately suspend.

This is of course possible to implement on top of swayidle, but would require keeping state externally.

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

No branches or pull requests

1 participant