mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +00:00
lain: fix attempt for #29
This commit is contained in:
parent
49263afbbd
commit
0939b743c9
2
lain
2
lain
|
@ -1 +1 @@
|
||||||
Subproject commit f87b80a92ce3a34c3f5843647be9c2189da53d99
|
Subproject commit 3fc0ed44dc2169d10a42f1c6f6ea39be7dc310dd
|
|
@ -200,8 +200,9 @@ baticon = wibox.widget.imagebox(beautiful.widget_battery)
|
||||||
batwidget = lain.widgets.bat({
|
batwidget = lain.widgets.bat({
|
||||||
settings = function()
|
settings = function()
|
||||||
if bat_now.perc == "N/A" then
|
if bat_now.perc == "N/A" then
|
||||||
bat_now.perc = "AC"
|
widget:set_markup(" AC ")
|
||||||
baticon:set_image(beautiful.widget_ac)
|
baticon:set_image(beautiful.widget_ac)
|
||||||
|
return
|
||||||
elseif tonumber(bat_now.perc) <= 5 then
|
elseif tonumber(bat_now.perc) <= 5 then
|
||||||
baticon:set_image(beautiful.widget_battery_empty)
|
baticon:set_image(beautiful.widget_battery_empty)
|
||||||
elseif tonumber(bat_now.perc) <= 15 then
|
elseif tonumber(bat_now.perc) <= 15 then
|
||||||
|
|
Loading…
Reference in a new issue