From fded39fa810ee95565e6e90dcd5da3512f3cebb9 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Mon, 11 Sep 2023 09:36:47 +0200 Subject: [PATCH] [modules/pulsectl] make device names case sensitive A previous change accidentially changed the "pretty" device name mapping to be required to be in lowercase (rather than the exact name of the devices. Restore previous functionality. fixes #989 --- bumblebee_status/modules/core/pulsectl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumblebee_status/modules/core/pulsectl.py b/bumblebee_status/modules/core/pulsectl.py index 701f6ef..fd77c26 100644 --- a/bumblebee_status/modules/core/pulsectl.py +++ b/bumblebee_status/modules/core/pulsectl.py @@ -110,8 +110,8 @@ class Module(core.module.Module): res = f"{res} {util.graph.hbar(self.__volume*100)}" if self.__show_device_name: - friendly_name = self.parameter(self.__devicename.lower(), self.__devicename) - icon = self.parameter("icon." + self.__devicename.lower(), "") + friendly_name = self.parameter(self.__devicename, self.__devicename) + icon = self.parameter("icon." + self.__devicename, "") res = ( icon + " " + friendly_name + " | " + res if icon != ""