From d56404164f7a04cc6433a7693b56e18dec7ec994 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sat, 9 Feb 2019 14:23:12 +0100 Subject: =?UTF-8?q?s=C3=A1b=20feb=20=209=2014:23:14=20CET=202019?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i3blocks/i3battery.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'i3blocks/i3battery.sh') diff --git a/i3blocks/i3battery.sh b/i3blocks/i3battery.sh index 735b1b4..3232a48 100755 --- a/i3blocks/i3battery.sh +++ b/i3blocks/i3battery.sh @@ -31,6 +31,7 @@ fi [ "$status" = "Charging" ] && color="#1fffaf" -printf "%s%s%s" "$color" "$(echo "$status" | sed -e "s/,//g;s/Discharging/🔋/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')" +remaining=$(acpi | cut -d' ' -f5) +printf "%s%s%s (%s)" "$color" "$(echo "$status" | sed -e "s/,//g;s/Discharging/🔋/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')" "$remaining" echo "" -- cgit v1.2.1