Is there a way to change the degraded threshold for wireless in the i3status bar?
Wireless status changes to degraded color when the quality is below 50%. Is there a way to change this threshold to something other than 50%?
Wireless status changes to degraded color when the quality is below 50%. Is there a way to change this threshold to something other than 50%?
There is no easy way:
i3status
. i3status
code, but it is retrieved with the iwlib library, which in turn seems to get it from the driver.The wireless.h
(from iwlib) has the following to say about avg_qual
(which i3status
uses - correctly so - as threshold value):
/* This should contain the average/typical values of the quality
* indicator. This should be the threshold between a "good" and
* a "bad" link (example : monitor going from green to orange).
* Currently, user space apps like quality monitors don't have any
* way to calibrate the measurement. With this, they can split
* the range between 0 and max_qual in different quality level
* (using a geometric subdivision centered on the average).
* I expect that people doing the user space apps will feedback
* us on which value we need to put in each driver... */
struct iw_quality avg_qual;
So unless there is a way to actually calibrate this setting now, it seems that the threshold i3status
uses cannot be changed.
Of course you could always modify the code and compile i3status
yourself.
Asked: 2014-12-04 19:48:38 +0000
Seen: 581 times
Last updated: Dec 05 '14