mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-06-17 20:49:27 -05:00
Fix missing battery bug
This commit is contained in:
parent
8b2c7b70e9
commit
194d37df09
4
neofetch
4
neofetch
|
|
@ -1688,8 +1688,8 @@ getbattery() {
|
|||
*) index="$battery_num" ;;
|
||||
esac
|
||||
|
||||
batteries=($(cat "/sys/class/power_supply/BAT$battery_num/capacity"))
|
||||
battery_state=($(cat "/sys/class/power_supply/BAT${battery_num}/status"))
|
||||
batteries=("$(cat /sys/class/power_supply/BAT$battery_num/capacity)")
|
||||
battery_state=("$(cat /sys/class/power_supply/BAT${battery_num}/status)")
|
||||
|
||||
# Get the subtitle and reassign it so it doesn't change.
|
||||
title="$subtitle"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user