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

Add battery status for plugged in, but not charging #253

Closed
norseghost opened this issue Mar 29, 2019 · 5 comments
Closed

Add battery status for plugged in, but not charging #253

norseghost opened this issue Mar 29, 2019 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@norseghost
Copy link

I'd like to distinguish from

  • battery plugged in, but not charging (I set charging thresholds with TLP)
  • battery charging
  • battery discharging

preferably with different format_icons for each state (ex, discharging -> battery levels; charging -> battery levels with power symbol; plugged in/not charging -> power plug)

@Alexays Alexays added the enhancement New feature or request label Mar 29, 2019
@sharethewisdom
Copy link

I'd like #battery to also have successive classes based on the states, e.g. #battery:not(.charging)._30 would allow me to style an 'unloading bar' background animation spanning 30% of the module's total width.

@Alexays Alexays added this to the 0.7.0 milestone May 14, 2019
@Alexays
Copy link
Owner

Alexays commented May 14, 2019

@sharethewisdom What do you mean? The state key is added as a class.

@Alexays
Copy link
Owner

Alexays commented May 14, 2019

Should be done with 5b3402e

@Alexays Alexays closed this as completed May 14, 2019
@sharethewisdom
Copy link

sharethewisdom commented May 14, 2019

sorry, I was confusing states with statuses 😕

so it was already possible to define states = { "_90": 90, ... } and use it as #battery:not(.charging)._90 { animate: ... } and include a css transition to change the background-size for ._80, ._70, ... classes.

@norseghost
Copy link
Author

How would I go about defining formaticons for the charging state?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants