This commit is contained in:
Luke Bonham 2017-03-03 13:13:14 +01:00
parent f0cd62d7f8
commit 5ff41cc188
1 changed files with 3 additions and 4 deletions

View File

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