pulseout: adding nerd font icons for low, mid, heigh, muted

This commit is contained in:
Ludwig Behm 2023-11-10 20:44:16 +01:00
parent d7d4603855
commit 60bfb19378
Signed by: l.behm
GPG key ID: D344835D63B89384
2 changed files with 10 additions and 3 deletions

View file

@ -198,6 +198,10 @@ class Module(core.module.Module):
def state(self, _): def state(self, _):
if self.__muted: if self.__muted:
return ["warning", "muted"] return ["warning", "muted"]
return ["unmuted"] if self.__volume >= .5:
return ["unmuted", "unmuted-high"]
if self.__volume >= .1:
return ["unmuted", "unmuted-mid"]
return ["unmuted", "unmuted-low"]
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4

View file

@ -199,11 +199,14 @@
}, },
"pulseout": { "pulseout": {
"muted": { "muted": {
"prefix": "" "prefix": "󰝟"
}, },
"unmuted": { "unmuted": {
"prefix": "" "prefix": ""
} },
"unmuted-low": { "prefix": "󰕿" },
"unmuted-mid": { "prefix": "󰖀" },
"unmuted-high": { "prefix": "󰕾" }
}, },
"amixer": { "amixer": {
"muted": { "muted": {