diff options
author | pmakhov <pavel.makhov@savoirfairelinux.com> | 2017-10-04 19:49:58 -0400 |
---|---|---|
committer | pmakhov <pavel.makhov@savoirfairelinux.com> | 2017-10-04 19:49:58 -0400 |
commit | 8f15e560bc7ca999ca9e02659650e71979627f41 (patch) | |
tree | dd81107da7d4e1d5b774f6721be9133394151e6e | |
parent | 35bdba1e4a7a9e032a4346efea94f5f36fe42f2c (diff) |
follow Lua code style
-rw-r--r-- | battery-widget/battery.lua | 2 | ||||
-rw-r--r-- | batteryarc-widget/batteryarc.lua | 0 |
2 files changed, 1 insertions, 1 deletions
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 --- /dev/null +++ b/batteryarc-widget/batteryarc.lua |