Fix the statusbar battery icon
We hardcode the file path as it is now configurable
This commit is contained in:
parent
500a227d05
commit
200ecfa1a7
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ update() {
|
|||
fi
|
||||
|
||||
# Battery pct
|
||||
BATTERY_DEVICE="${BATTERY_DEVICE:-"/sys/class/power_supply/*-battery"}"
|
||||
BATTERY_DEVICE="${BATTERY_DEVICE:-"/sys/class/power_supply/axp20x-battery"}"
|
||||
PCT="$(cat "$BATTERY_DEVICE"/capacity)"
|
||||
BATSTATUS="$(
|
||||
cut -c1 "$BATTERY_DEVICE"/status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue