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))