From 0939b743c976f8182e7a6672b3d9cdc77a3e0542 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Wed, 29 Jan 2014 11:58:47 +0100 Subject: [PATCH] lain: fix attempt for #29 --- lain | 2 +- rc.lua.powerarrow-darker | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lain b/lain index f87b80a..3fc0ed4 160000 --- a/lain +++ b/lain @@ -1 +1 @@ -Subproject commit f87b80a92ce3a34c3f5843647be9c2189da53d99 +Subproject commit 3fc0ed44dc2169d10a42f1c6f6ea39be7dc310dd diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 3f124a6..f7c8d45 100755 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -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