From 2cfdfd34e416f4f5d792b1f9ca87c37c5107df3a Mon Sep 17 00:00:00 2001 From: Sebastian Elisa Pfeifer Date: Fri, 25 Aug 2017 12:16:58 +0200 Subject: [PATCH] fixed get_battery for device names starting with CMB --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 15478476..2dd6a1b0 100755 --- a/neofetch +++ b/neofetch @@ -2077,7 +2077,7 @@ get_battery() { "Linux") # We use 'prin' here so that we can do multi battery support # with a single battery per line. - for bat in "/sys/class/power_supply/"{BAT,axp288_fuel_gauge}*; do + for bat in "/sys/class/power_supply/"{BAT,axp288_fuel_gauge,CMB}*; do capacity="$(< "${bat}/capacity")" status="$(< "${bat}/status")"