From fa430134310cb6b3c98f445e423fa6095d800743 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Wed, 1 Feb 2017 21:45:15 -0500 Subject: readme update --- battery-widget/battery.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'battery-widget/battery.lua') diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index c34c235..b2c78e7 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -9,7 +9,7 @@ battery_widget = wibox.widget { widget = wibox.widget.imagebox } -- Battery 0: Discharging, 75%, 01:51:38 remaining -- Battery 0: Charging, 53%, 00:57:43 until charged -local path_to_icons = "/usr/share/icons/Arc-Icons/panel/22/" +local path_to_icons = "/usr/share/icons/Arc/panel/22/" watch( "acpi", 10, @@ -17,10 +17,10 @@ watch( local batteryType local _, status, charge, time = string.match(stdout, '(.+): (%a+), (%d%d)%%, (.+)') charge = tonumber(charge) - if (charge >= 0 and charge < 20) then + if (charge >= 0 and charge < 15) then batteryType="battery-empty" show_battery_warning() - elseif (charge >= 20 and charge < 40) then batteryType="battery-caution" + elseif (charge >= 15 and charge < 40) then batteryType="battery-caution" elseif (charge >= 40 and charge < 60) then batteryType="battery-low" elseif (charge >= 60 and charge < 80) then batteryType="battery-good" elseif (charge >= 80 and charge <= 100) then batteryType="battery-full" -- cgit v1.2.3