mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
parent
f0cd62d7f8
commit
5ff41cc188
|
@ -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 .. " "))
|
||||||
|
|
Loading…
Reference in a new issue