diff options
Diffstat (limited to 'rc.lua')
-rw-r--r-- | rc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -326,8 +326,8 @@ function act() awful.spawn.easy_async("bash -c \"acpi | cut -d',' -f2 \"", function(percent, stderr, reason, exit_code) a, b = string.find( percent, "%%") - nPercent = tonumber(string.sub(percent,2,a-1)) if a then + nPercent = tonumber(string.sub(percent,2,a-1)) mybatwidget:set_text ("🔌 " .. nPercent .. "%") end end) |