From d3af136438c4749f5673911dcba106b10d3e4478 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Thu, 19 Sep 2013 13:51:38 +0200 Subject: [PATCH] solved issue #11 --- README.rst | 3 ++- rc.lua.powerarrow-darker | 4 ++-- rc.lua.rainbow | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 234c69f..d19d75c 100644 --- a/README.rst +++ b/README.rst @@ -39,7 +39,8 @@ Notable features - Vi-like client focus - Nice client border (colors change along with process status) - Non-empty tag browsing -- Dynamic tag renaming +- Tag renaming +- Dynamic useless gaps Gallery ======= diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 1f89ca6..49a9a89 100755 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -202,9 +202,9 @@ batwidget = lain.widgets.bat({ if bat_now.perc == "N/A" then bat_now.perc = "AC" baticon:set_image(beautiful.widget_ac) - elseif tostring(bat_now.perc) <= 5 then + elseif tonumber(bat_now.perc) <= 5 then baticon:set_image(beautiful.widget_battery_empty) - elseif tostring(bat_now.perc) <= 15 then + elseif tonumber(bat_now.perc) <= 15 then baticon:set_image(beautiful.widget_battery_low) else baticon:set_image(beautiful.widget_battery) diff --git a/rc.lua.rainbow b/rc.lua.rainbow index d2b0767..979414e 100755 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -178,7 +178,7 @@ fshome = lain.widgets.fs({ if used >= 90 then hdd = " Hdd " - p = used + p = used .. " " end widget:set_markup(markup(gray, hdd) .. markup(white, p))