Merge pull request #243 from MisterDA/patch-1

Show battery percentage even when on sector
This commit is contained in:
Luca CPZ 2018-10-16 16:31:34 +01:00 committed by GitHub
commit f39710c2af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -207,9 +207,7 @@ local bat = lain.widget.bat({
settings = function()
if bat_now.status and bat_now.status ~= "N/A" then
if bat_now.ac_status == 1 then
widget:set_markup(markup.font(theme.font, " AC "))
baticon:set_image(theme.widget_ac)
return
elseif not bat_now.perc and tonumber(bat_now.perc) <= 5 then
baticon:set_image(theme.widget_battery_empty)
elseif not bat_now.perc and tonumber(bat_now.perc) <= 15 then