Update battery.lua

This commit is contained in:
streetturtle 2017-10-04 15:17:58 -04:00 committed by GitHub
parent 35bdba1e4a
commit bef134560f
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ watch(
elseif (charge >= 15 and charge < 40) then batteryType="battery-caution%s-symbolic" elseif (charge >= 15 and charge < 40) then batteryType="battery-caution%s-symbolic"
elseif (charge >= 40 and charge < 60) then batteryType="battery-low%s-symbolic" elseif (charge >= 40 and charge < 60) then batteryType="battery-low%s-symbolic"
elseif (charge >= 60 and charge < 80) then batteryType="battery-good%s-symbolic" elseif (charge >= 60 and charge < 80) then batteryType="battery-good%s-symbolic"
elseif (charge >= 80 and charge <= 95) then batteryType="battery-full%s-symbolic" elseif (charge >= 80 and charge <= 100) then batteryType="battery-full%s-symbolic"
end end
if status == 'Charging' then if status == 'Charging' then
batteryType = string.format(batteryType,'-charging') batteryType = string.format(batteryType,'-charging')