Fix for i3 status bar battery indicator

Newline after the </span> tag so it'll work in the latest version of i3.
This commit is contained in:
jcenters 2019-09-11 11:13:27 -05:00 committed by GitHub
parent 76ebb11dcf
commit 43df1caf66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,4 +29,4 @@ fi
[ "$status" = "Charging" ] && color="#ffffff"
printf "<span color='%s'>%s%s%s</span>" "$color" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not Charging/🛑/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')"
printf "<span color='%s'>%s%s%s</span>\n" "$color" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not Charging/🛑/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')"