Merge branch 'netifaces'

This commit is contained in:
enkore 2014-05-10 13:43:42 +02:00
commit 640f25d5eb
4 changed files with 8 additions and 9 deletions

View File

@ -189,7 +189,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}",)
@ -197,7 +197,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}%",)
@ -685,7 +685,7 @@ network
Display network information about a interface.
Requires the PyPI package `netifaces-py3`.
Requires the PyPI package `netifaces`.
Available formatters:
@ -912,7 +912,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.

View File

@ -189,7 +189,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}",)
@ -197,7 +197,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}%",)

View File

@ -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:

View File

@ -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.