diff --git a/README.rst b/README.rst index e5c3281..c11605b 100644 --- a/README.rst +++ b/README.rst @@ -188,7 +188,7 @@ example): # If it's down just the interface name (eth0) will be displayed in red # (defaults of format_down and color_down) # - # Note: the network module requires PyPI package netifaces-py3 + # Note: the network module requires PyPI package netifaces status.register("network", interface="eth0", format_up="{v4cidr}",) @@ -196,7 +196,7 @@ example): # Has all the options of the normal network and adds some wireless specific things # like quality and network names. # - # Note: requires both netifaces-py3 and basiciw + # Note: requires both netifaces and basiciw status.register("wireless", interface="wlan0", format_up="{essid} {quality:03.0f}%",) @@ -684,7 +684,7 @@ network Display network information about a interface. -Requires the PyPI package `netifaces-py3`. +Requires the PyPI package `netifaces`. Available formatters: @@ -911,7 +911,7 @@ wireless Display network information about a interface. -Requires the PyPI packages `netifaces-py3` and `basiciw`. +Requires the PyPI packages `netifaces` and `basiciw`. This is based on the network module, so all options and formatters are the same, except for these additional formatters and that detached_down doesn't work. diff --git a/README.tpl.rst b/README.tpl.rst index e0dfa05..7cc3013 100644 --- a/README.tpl.rst +++ b/README.tpl.rst @@ -188,7 +188,7 @@ example): # If it's down just the interface name (eth0) will be displayed in red # (defaults of format_down and color_down) # - # Note: the network module requires PyPI package netifaces-py3 + # Note: the network module requires PyPI package netifaces status.register("network", interface="eth0", format_up="{v4cidr}",) @@ -196,7 +196,7 @@ example): # Has all the options of the normal network and adds some wireless specific things # like quality and network names. # - # Note: requires both netifaces-py3 and basiciw + # Note: requires both netifaces and basiciw status.register("wireless", interface="wlan0", format_up="{essid} {quality:03.0f}%",) diff --git a/i3pystatus/network.py b/i3pystatus/network.py index 29c1501..0fadf85 100644 --- a/i3pystatus/network.py +++ b/i3pystatus/network.py @@ -1,7 +1,6 @@ from itertools import zip_longest import subprocess -# PyPI: netifaces-py3 import netifaces from i3pystatus import IntervalModule @@ -50,7 +49,7 @@ class Network(IntervalModule): """ Display network information about a interface. - Requires the PyPI package `netifaces-py3`. + Requires the PyPI package `netifaces`. Available formatters: diff --git a/i3pystatus/wireless.py b/i3pystatus/wireless.py index a11b4c4..0ebb9df 100644 --- a/i3pystatus/wireless.py +++ b/i3pystatus/wireless.py @@ -7,7 +7,7 @@ class Wireless(Network): """ Display network information about a interface. - Requires the PyPI packages `netifaces-py3` and `basiciw`. + Requires the PyPI packages `netifaces` and `basiciw`. This is based on the network module, so all options and formatters are the same, except for these additional formatters and that detached_down doesn't work.