diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2018-03-21 09:56:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-21 09:56:51 -0400 |
commit | 74f3d82bddcfd36b92faa6fdfdd34863537a2c70 (patch) | |
tree | d168e7212bfd56fe4d35585fc0cc4def99ffcb70 /battery-widget | |
parent | fc44a84708c2ba44d7d30eb9907365d351039b86 (diff) | |
parent | dfe693ce4f369eefd951119b463c8fcccf5ae119 (diff) |
Merge pull request #37 from Tyilo/patch-1
Support one-digit charges in battery widget
Diffstat (limited to 'battery-widget')
-rw-r--r-- | battery-widget/battery.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index badbc8f..01a3ddd 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -70,7 +70,7 @@ end watch("acpi", 10, function(widget, stdout, stderr, exitreason, exitcode) local batteryType - local _, status, charge_str, time = string.match(stdout, '(.+): (%a+), (%d?%d%d)%%,? ?.*') + local _, status, charge_str, time = string.match(stdout, '(.+): (%a+), (%d?%d?%d)%%,? ?.*') local charge = tonumber(charge_str) if (charge >= 0 and charge < 15) then batteryType = "battery-empty%s-symbolic" |