Closed bend-n closed 2 years ago
@bend-n to troubleshoot, can you give me the full content of the /sys/class/power_supply/
folder? Thanks!
cd /sys/class/power_supply/BAT0
tree
.
├── alarm
├── capacity
├── capacity_level
├── cycle_count
├── device -> ../../../PNP0C0A:00
├── energy_full
├── energy_full_design
├── energy_now
├── hwmon2
│ ├── device -> ../../BAT0
│ ├── in0_input
│ ├── name
│ ├── power
│ │ ├── autosuspend_delay_ms
│ │ ├── control
│ │ ├── runtime_active_time
│ │ ├── runtime_status
│ │ └── runtime_suspended_time
│ ├── subsystem -> ../../../../../../../../../../class/hwmon
│ └── uevent
├── manufacturer
├── model_name
├── power
│ ├── autosuspend_delay_ms
│ ├── control
│ ├── runtime_active_time
│ ├── runtime_status
│ └── runtime_suspended_time
├── power_now
├── present
├── serial_number
├── status
├── subsystem -> ../../../../../../../../../class/power_supply
├── technology
├── type
├── uevent
├── voltage_min_design
└── voltage_now
@bend-n I should've specified as a zip file, I need the actual folder (sys/class/power_supply) and files so I can use this to run the logic on. Sorry.
@bend-n thx, I can reproduce it. Will try to fix this later today.
@bend-n let me know if this works. I might have just refactored too much.
@JanDeDobbeleer It works! ... Mostly.. Its always on the "charging_icon", even when fully charged, it wont change to the "charged_icon". Its a minor thing, which I can fix with a bunch of if
s, but still. Also, where is the documentation for the if
statement? (nvm, found @https://ohmyposh.dev/docs/configuration/templates#template-logic)
@bend-n hmm, it could mean the state isn't properly provided. 'll see if I can debug that one.
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
Battery problems.
Unable to use the battery segment
Theme
What OS are you seeing the problem on?
Linux
Which shell are you using?
No response
Log output