mirror of https://github.com/lcpz/lain.git
wiki updated; #314
This commit is contained in:
parent
1c04624c0a
commit
5f32175e3d
|
@ -18,7 +18,7 @@ If you still have to use branch 3.5.x, you can refer to the commit 301faf5_, but
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
Successor of awesome-vain_, this module provides new layouts, asynchronous widgets and utility functions, with the aim of improving Awesome_ usability and configurability.
|
Successor of awesome-vain_, this module provides alternative layouts, asynchronous widgets and utility functions for Awesome_ WM.
|
||||||
|
|
||||||
Read the wiki_ for all the info.
|
Read the wiki_ for all the info.
|
||||||
|
|
||||||
|
|
|
@ -119,9 +119,9 @@ local function factory(args)
|
||||||
|
|
||||||
if bat_now.status ~= "N/A" then
|
if bat_now.status ~= "N/A" then
|
||||||
if bat_now.status ~= "Full" and sum_rate_power == 0 and bat_now.ac_status == 1 then
|
if bat_now.status ~= "Full" and sum_rate_power == 0 and bat_now.ac_status == 1 then
|
||||||
bat_now.perc = math.floor(math.min(100, (sum_energy_now / sum_energy_full) * 100))
|
bat_now.perc = math.floor(math.min(100, (sum_energy_now / sum_energy_full) * 100))
|
||||||
bat_now.time = "00:00"
|
bat_now.time = "00:00"
|
||||||
bat_now.watt = 0
|
bat_now.watt = 0
|
||||||
|
|
||||||
-- update {perc,time,watt} iff battery not full and rate > 0
|
-- update {perc,time,watt} iff battery not full and rate > 0
|
||||||
elseif bat_now.status ~= "Full" then
|
elseif bat_now.status ~= "Full" then
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit d3b29e25c4d47a5988948d2f9432d9353c826c2a
|
Subproject commit ebd3fbe8171a6764c9b5fdc916fc4b6f4939a31f
|
Loading…
Reference in New Issue