[modules/pulsectl] add friendly name support

thanks to @anopheles for figuring out this is still missing
This commit is contained in:
tobi-wan-kenobi 2022-09-14 21:12:01 +02:00
parent 7a1022de46
commit 97a022e452

View file

@ -96,7 +96,7 @@ class Module(core.module.Module):
res = f"{res} {util.graph.hbar(self.__volume*100)}" res = f"{res} {util.graph.hbar(self.__volume*100)}"
if self.__show_device_name: if self.__show_device_name:
friendly_name = self.__devicename friendly_name = self.parameter(self.__devicename, self.__devicename)
icon = self.parameter("icon." + self.__devicename, "") icon = self.parameter("icon." + self.__devicename, "")
res = ( res = (
icon + " " + friendly_name + " | " + res icon + " " + friendly_name + " | " + res