mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +00:00
multicolor: dont override bat_now.perc, fixes #165
This commit is contained in:
parent
00c1f44709
commit
74ce13c5a0
|
@ -175,14 +175,14 @@ 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
|
bat_p = bat_now.perc
|
||||||
bat_now.perc = bat_now.perc .. "%"
|
if bat_p ~= "N/A" then
|
||||||
|
bat_p = bat_p .. "%"
|
||||||
end
|
end
|
||||||
if bat_now.ac_status == 1 then
|
if bat_now.ac_status == 1 then
|
||||||
bat_now.perc = bat_now.perc .. " plug"
|
bat_p = bat_p .. " plug"
|
||||||
end
|
end
|
||||||
|
widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, bat_p .. " "))
|
||||||
widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, bat_now.perc .. " "))
|
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue