Added VPN-Status in panel

This commit is contained in:
Sheppy
2017-05-22 17:54:56 +02:00
parent a529dc0130
commit d81c63bbe3
2 changed files with 34 additions and 3 deletions

View File

@@ -71,6 +71,13 @@ def guthaben():
guthaben = color_panel(guthaben,col)
return guthaben;
def vpn():
vpn = ''
if not hl_utils.is_cip():
tmp = -1
with open(hl_utils.hlpath("vpn_status.log")) as f:
tmp = float(f.read());
return tmp;
def battery():
if hl_utils.is_laptop():
@@ -126,4 +133,4 @@ def irc():
else:
return ''
print(guthaben(),battery(),sep='')
print(vpn(),guthaben(),battery(),sep='')