Fix missing battery bug
This commit is contained in:
parent
8b2c7b70e9
commit
194d37df09
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -1688,8 +1688,8 @@ getbattery() {
|
||||||
*) index="$battery_num" ;;
|
*) index="$battery_num" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
batteries=($(cat "/sys/class/power_supply/BAT$battery_num/capacity"))
|
batteries=("$(cat /sys/class/power_supply/BAT$battery_num/capacity)")
|
||||||
battery_state=($(cat "/sys/class/power_supply/BAT${battery_num}/status"))
|
battery_state=("$(cat /sys/class/power_supply/BAT${battery_num}/status)")
|
||||||
|
|
||||||
# Get the subtitle and reassign it so it doesn't change.
|
# Get the subtitle and reassign it so it doesn't change.
|
||||||
title="$subtitle"
|
title="$subtitle"
|
||||||
|
|
Loading…
Reference in a new issue