Skip to content

feat(UPowerDevice): report wether AC is online#468

Open
jeLee6gi wants to merge 1 commit intoignis-sh:mainfrom
jeLee6gi:ac_online
Open

feat(UPowerDevice): report wether AC is online#468
jeLee6gi wants to merge 1 commit intoignis-sh:mainfrom
jeLee6gi:ac_online

Conversation

@jeLee6gi
Copy link
Copy Markdown

This is useful to me because I use TLP to set a start threshold for my battery and I want to display a different icon to indicate if the battery is not charging but AC is online, e.g.

if battery.charging:
    icon_path = "battery_charging.svg"
elif ac.online:
    icon_path = "battery_stalled.svg"

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant