Merge branch 'master' of https://github.com/al45tair/i3pystatus into netifaces
This commit is contained in:
commit
d2f2ed7ee4
@ -188,7 +188,7 @@ example):
|
|||||||
# If it's down just the interface name (eth0) will be displayed in red
|
# If it's down just the interface name (eth0) will be displayed in red
|
||||||
# (defaults of format_down and color_down)
|
# (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",
|
status.register("network",
|
||||||
interface="eth0",
|
interface="eth0",
|
||||||
format_up="{v4cidr}",)
|
format_up="{v4cidr}",)
|
||||||
@ -196,7 +196,7 @@ example):
|
|||||||
# Has all the options of the normal network and adds some wireless specific things
|
# Has all the options of the normal network and adds some wireless specific things
|
||||||
# like quality and network names.
|
# like quality and network names.
|
||||||
#
|
#
|
||||||
# Note: requires both netifaces-py3 and basiciw
|
# Note: requires both netifaces and basiciw
|
||||||
status.register("wireless",
|
status.register("wireless",
|
||||||
interface="wlan0",
|
interface="wlan0",
|
||||||
format_up="{essid} {quality:03.0f}%",)
|
format_up="{essid} {quality:03.0f}%",)
|
||||||
@ -684,7 +684,7 @@ network
|
|||||||
|
|
||||||
Display network information about a interface.
|
Display network information about a interface.
|
||||||
|
|
||||||
Requires the PyPI package `netifaces-py3`.
|
Requires the PyPI package `netifaces`.
|
||||||
|
|
||||||
Available formatters:
|
Available formatters:
|
||||||
|
|
||||||
@ -911,7 +911,7 @@ wireless
|
|||||||
|
|
||||||
Display network information about a interface.
|
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
|
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.
|
the same, except for these additional formatters and that detached_down doesn't work.
|
||||||
|
@ -188,7 +188,7 @@ example):
|
|||||||
# If it's down just the interface name (eth0) will be displayed in red
|
# If it's down just the interface name (eth0) will be displayed in red
|
||||||
# (defaults of format_down and color_down)
|
# (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",
|
status.register("network",
|
||||||
interface="eth0",
|
interface="eth0",
|
||||||
format_up="{v4cidr}",)
|
format_up="{v4cidr}",)
|
||||||
@ -196,7 +196,7 @@ example):
|
|||||||
# Has all the options of the normal network and adds some wireless specific things
|
# Has all the options of the normal network and adds some wireless specific things
|
||||||
# like quality and network names.
|
# like quality and network names.
|
||||||
#
|
#
|
||||||
# Note: requires both netifaces-py3 and basiciw
|
# Note: requires both netifaces and basiciw
|
||||||
status.register("wireless",
|
status.register("wireless",
|
||||||
interface="wlan0",
|
interface="wlan0",
|
||||||
format_up="{essid} {quality:03.0f}%",)
|
format_up="{essid} {quality:03.0f}%",)
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
from itertools import zip_longest
|
from itertools import zip_longest
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# PyPI: netifaces-py3
|
|
||||||
import netifaces
|
import netifaces
|
||||||
|
|
||||||
from i3pystatus import IntervalModule
|
from i3pystatus import IntervalModule
|
||||||
@ -50,7 +49,7 @@ class Network(IntervalModule):
|
|||||||
"""
|
"""
|
||||||
Display network information about a interface.
|
Display network information about a interface.
|
||||||
|
|
||||||
Requires the PyPI package `netifaces-py3`.
|
Requires the PyPI package `netifaces`.
|
||||||
|
|
||||||
Available formatters:
|
Available formatters:
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ class Wireless(Network):
|
|||||||
"""
|
"""
|
||||||
Display network information about a interface.
|
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
|
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.
|
the same, except for these additional formatters and that detached_down doesn't work.
|
||||||
|
Loading…
Reference in New Issue
Block a user