qdbp / py9status

i3bar status line in python 3
3 stars 1 forks source link

added: wireless default unit #9

Closed jeff-cai closed 7 years ago

jeff-cai commented 7 years ago

4

Preliminary wireless unit. Future development on displaying ip to be considered.

qdbp commented 7 years ago

I would encourage the direct use of /sys/ and /proc/ over requiring binaries, both for performance and compatibility.

One of the (hitherto unstated) stretch goals for this project is to have no binary blob dependencies (with the exception of units like PY3NVGPU which monitor a proprietary subsystem).

jeff-cai commented 7 years ago

Further development will migrate towards reading from /sys/ and /proc/. In it's current form I think of it as a placeholder unit that returns the intended outcome (mostly for my own uses) that I thought was stable enough to merge to master despite requiring dependencies.

jeff-cai commented 7 years ago

The arch wiki also seems to suggest that these packages are the standard for managing wireless networks, so from a compatibility side I think it would be safe. Though it does mention:

wireless_tools - currently deprecated, but still widely supported.

Perhaps updating to depend on iw would be better future-proofing.

qdbp commented 7 years ago

Please separate the get_chunk method into read and format, as per the new API.