From bef134560f20d3c4ed389490f0054ab8f7a74ec0 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Wed, 4 Oct 2017 15:17:58 -0400 Subject: Update battery.lua --- battery-widget/battery.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- cgit v1.2.3 From d5aed527fad7fb3a5f3d58b986f9533a3a355426 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Wed, 4 Oct 2017 15:18:17 -0400 Subject: Update README.md --- battery-widget/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/battery-widget/README.md b/battery-widget/README.md index 4c907a1..654f33c 100644 --- a/battery-widget/README.md +++ b/battery-widget/README.md @@ -15,8 +15,6 @@ This widget consists of: Note that widget uses the Arc icon theme, so it should be [installed](https://github.com/horst3180/arc-icon-theme#installation) first under **/usr/share/icons/Arc/** folder. -Also it's worth mentioning that if the charge is more that 95% the widget is hidden. This is done intentionally in order to save some space on wibox when laptop is plugged in dock station or power socket. You can edit this behaviour [here](https://github.com/streetturtle/awesome-wm-widgets/blob/41b0476d84646fe04b5795e072f5ac8dfdb0066b/battery-widget/battery.lua#L37) - ## Installation This widget reads the output of acpi tool. -- cgit v1.2.3 From df70e598c83cdda012a9607b8e4c3044e9621437 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Wed, 4 Oct 2017 15:18:51 -0400 Subject: Update README.md --- battery-widget/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battery-widget/README.md b/battery-widget/README.md index 654f33c..4a69c1d 100644 --- a/battery-widget/README.md +++ b/battery-widget/README.md @@ -8,7 +8,7 @@ This widget consists of: ![Battery Widget](./bat-wid-1.png) - a pop-up window, which shows up when you hover over an icon: ![Battery Widget](./bat-wid-2.png) - Alternatively you can use a tooltip: + Alternatively you can use a tooltip (check the code): ![Battery Widget](./bat-wid-22.png) - a pop-up warning message which appears on bottom right corner when battery level is less that 15%: ![Battery Widget](./bat-wid-3.png) -- cgit v1.2.3