Lots of changes in curacao

This commit is contained in:
Geoffrey Frogeye 2018-10-08 23:52:53 +02:00
parent 4bf544c9be
commit 3d24d97d51
16 changed files with 46 additions and 21 deletions

View file

@ -1,5 +1,4 @@
#!/usr/bin/env python3
from providers import *
# TODO If multiple screen, expand the sections and share them

View file

@ -223,6 +223,8 @@ class PulseaudioProvider(StatefulSection, ThreadedUpdater):
icon = ""
elif sink.port_active.name == "analog-output-speaker":
icon = "" if sink.mute else ""
elif sink.port_active.name == "headset-output":
icon = ''
else:
icon = "?"
vol = pulse.volume_get_all_chans(sink)
@ -265,7 +267,7 @@ class NetworkProviderSection(StatefulSection, Updater):
self.icon = ''
else:
self.icon = ''
elif self.iface.startswith('wlan') or self.iface.startswith('wlp'):
elif self.iface.startswith('wlan') or self.iface.startswith('wl'):
self.icon = ''
if self.showSsid:
cmd = ["iwgetid", self.iface, "--raw"]