From 04b35027c7c87ef9cc22308e0b10cb8b3c581b19 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 26 Mar 2016 01:06:03 +1100 Subject: [PATCH] Fix battery state when used with progress bars --- neofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index c7bd25dd..925a589c 100755 --- a/neofetch +++ b/neofetch @@ -1634,9 +1634,9 @@ getbattery () { esac case "$battery_display" in - "bar") battery="$(bar ${battery/'%'} 100)" ;; - "infobar") battery="${battery} $(bar "${battery/'%'}" 100)" ;; - "barinfo") battery="$(bar "${battery/'%'}" 100) ${battery}" ;; + "bar") battery="$(bar ${battery/'% Charging'} 100)" ;; + "infobar") battery="${battery/ Charging} $(bar "${battery/'% Charging'}" 100)" ;; + "barinfo") battery="$(bar "${battery/'% Charging'}" 100) ${battery/ Charging}" ;; esac }