show v6 in statusbar
This commit is contained in:
1 parent
cb915f5aa8
commit
19d6bc29cc
1 file changed
+11
@@ -125,6 +125,15 @@ def getIp():
|
|||||||
r = requests.get("http://ipv4.nsupdate.info/myip")
|
r = requests.get("http://ipv4.nsupdate.info/myip")
|
||||||
return r.text
|
return r.text
|
||||||
|
|
||||||
|
|
||||||
|
def getIpv6():
|
||||||
|
import requests
|
||||||
|
try:
|
||||||
|
r = requests.get("http://ipv6.nsupdate.info/myip")
|
||||||
|
return r.text
|
||||||
|
except:
|
||||||
|
return 'No IPv6'
|
||||||
|
|
||||||
screens = [
|
screens = [
|
||||||
Screen(
|
Screen(
|
||||||
top=bar.Bar(
|
top=bar.Bar(
|
||||||
@@ -142,6 +151,8 @@ screens = [
|
|||||||
[
|
[
|
||||||
widget.WindowName(),
|
widget.WindowName(),
|
||||||
widget.Notify(),
|
widget.Notify(),
|
||||||
|
widget.GenPollText(func=getIpv6),
|
||||||
|
widget.Sep(),
|
||||||
widget.GenPollText(func=getIp),
|
widget.GenPollText(func=getIp),
|
||||||
widget.Sep(),
|
widget.Sep(),
|
||||||
widget.ThermalSensor(tag_sensor='Core 0'),
|
widget.ThermalSensor(tag_sensor='Core 0'),
|
||||||
|
|||||||
Reference in new issue
Block a user