mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
Show battery percentage even when on sector
Easier to check the percentage of the load of the battery when charging it
This commit is contained in:
parent
1619d26ab9
commit
87cede648a
|
@ -207,9 +207,7 @@ local bat = lain.widget.bat({
|
||||||
settings = function()
|
settings = function()
|
||||||
if bat_now.status and bat_now.status ~= "N/A" then
|
if bat_now.status and bat_now.status ~= "N/A" then
|
||||||
if bat_now.ac_status == 1 then
|
if bat_now.ac_status == 1 then
|
||||||
widget:set_markup(markup.font(theme.font, " AC "))
|
|
||||||
baticon:set_image(theme.widget_ac)
|
baticon:set_image(theme.widget_ac)
|
||||||
return
|
|
||||||
elseif not bat_now.perc and tonumber(bat_now.perc) <= 5 then
|
elseif not bat_now.perc and tonumber(bat_now.perc) <= 5 then
|
||||||
baticon:set_image(theme.widget_battery_empty)
|
baticon:set_image(theme.widget_battery_empty)
|
||||||
elseif not bat_now.perc and tonumber(bat_now.perc) <= 15 then
|
elseif not bat_now.perc and tonumber(bat_now.perc) <= 15 then
|
||||||
|
|
Loading…
Reference in a new issue