* added dynamic color support for cpu_usage
* some minor fixes to pass build tests
* added new PyPI requirement to documentation
* removed explicit setting self.color in CpuUsage
as a response to @facetoe removed explicitly setting self.color and instead
set the class wide variable color to #FFFFFF to not have the output been shown
in black.
* Added levels settings to the battery module
Specify text for custom levels of the battery charge
* Round up charge the same way it is displayed
percentage value used to determine text from levels setting should be
round up the same way as when it is displayed on the screen
* Add make_glyph function to core utils
A new function (in line with similar functions such as make_bar),
make_glyph allows generating a glyph based representation of a numeric
value.
An example use case would be to use a set of battery level glyphs from
FontAwesome to represent battery charge percentage.
* Update battery module to use make_glyph function
Minor update to battery module to allow use of make_glyph function.
Default glyphs do not provide anything fancy, but allow a hook point for
using more interesting glyphs from fonts with battery icons.
Addresses in 169.254.0.0/16 are auto-assigned as of RFC 3927.
These can be negotiated via the zeroconf protocol (avahi-autoip or systemd-networkd).
Usually those addresses are not so interesting and the addresses given by dhcp should be shown instead.
* Fix pycodestyle errors
W503 is condracting PEP-8 and was added to the default ignore list by
pycodestyle developers
* Use setup.cfg for pycodestyle ignore parameters
Addresses #651 (kind of). Appending ignores to the default list prevents
us from getting warnings that we don't care about.
* W503 is not in the default ignore list in 2.4.0
* Added new source of cpu information
Starting with kernel 4.13 /proc/cpuinfo only show the basic clock of the
processor not the current frequency. Change adds information from
/sys/devices/system/cpu , considering online and offline cpu's.
* PEP8 fixes
* Fix cpus_online_range
This module connects to the API of a Sensu monitoring service
and displays current status based on Sensu events.
There is a formatter to display most recent event message too.
Not all users execute i3pystatus directly, and this can cause issues
when i3bar sends the SIGUSR2 signal. This commit places the keep_alive
feature behind a flag in the Status module to be selectivly enabled by
those that want to use it.
Solves #609.