From 8f15e560bc7ca999ca9e02659650e71979627f41 Mon Sep 17 00:00:00 2001 From: pmakhov Date: Wed, 4 Oct 2017 19:49:58 -0400 Subject: follow Lua code style --- battery-widget/battery.lua | 2 +- batteryarc-widget/batteryarc.lua | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 batteryarc-widget/batteryarc.lua diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index 7e1955e..47955c9 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -34,7 +34,7 @@ watch( elseif (charge >= 15 and charge < 40) then batteryType="battery-caution%s-symbolic" elseif (charge >= 40 and charge < 60) then batteryType="battery-low%s-symbolic" elseif (charge >= 60 and charge < 80) then batteryType="battery-good%s-symbolic" - elseif (charge >= 80 and charge <= 95) then batteryType="battery-full%s-symbolic" + elseif (charge >= 80 and charge <= 100) then batteryType="battery-full%s-symbolic" end if status == 'Charging' then batteryType = string.format(batteryType,'-charging') diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3