1
0
Fork 0
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:
luke bonham 2014-01-29 11:58:47 +01:00
parent 49263afbbd
commit 0939b743c9
2 changed files with 3 additions and 2 deletions

2
lain

@ -1 +1 @@
Subproject commit f87b80a92ce3a34c3f5843647be9c2189da53d99
Subproject commit 3fc0ed44dc2169d10a42f1c6f6ea39be7dc310dd

View file

@ -200,8 +200,9 @@ baticon = wibox.widget.imagebox(beautiful.widget_battery)
batwidget = lain.widgets.bat({
settings = function()
if bat_now.perc == "N/A" then
bat_now.perc = "AC"
widget:set_markup(" AC ")
baticon:set_image(beautiful.widget_ac)
return
elseif tonumber(bat_now.perc) <= 5 then
baticon:set_image(beautiful.widget_battery_empty)
elseif tonumber(bat_now.perc) <= 15 then