1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-10-22 12:31:23 +00:00
This commit is contained in:
Luke Bonham 2017-03-03 13:13:14 +01:00
parent f0cd62d7f8
commit 5ff41cc188

View file

@ -175,11 +175,10 @@ local temp = lain.widget.temp({
local baticon = wibox.widget.imagebox(theme.widget_batt) local baticon = wibox.widget.imagebox(theme.widget_batt)
local bat = lain.widget.bat({ local bat = lain.widget.bat({
settings = function() settings = function()
if bat_now.perc ~= "N/A" then local perc = bat_now.perc ~= "N/A" and bat_now.perc .. "%" or bat_now.perc
bat_now.perc = bat_now.perc .. "%"
end
if bat_now.ac_status == 1 then if bat_now.ac_status == 1 then
bat_now.perc = bat_now.perc .. " plug" perc = perc .. " plug"
end end
widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, bat_now.perc .. " ")) widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, bat_now.perc .. " "))