pulseout: adding nerd font icons for low, mid, heigh, muted
This commit is contained in:
parent
d7d4603855
commit
60bfb19378
2 changed files with 10 additions and 3 deletions
|
@ -198,6 +198,10 @@ class Module(core.module.Module):
|
|||
def state(self, _):
|
||||
if self.__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
|
||||
|
|
|
@ -199,11 +199,14 @@
|
|||
},
|
||||
"pulseout": {
|
||||
"muted": {
|
||||
"prefix": ""
|
||||
"prefix": ""
|
||||
},
|
||||
"unmuted": {
|
||||
"prefix": ""
|
||||
}
|
||||
},
|
||||
"unmuted-low": { "prefix": "" },
|
||||
"unmuted-mid": { "prefix": "" },
|
||||
"unmuted-high": { "prefix": "" }
|
||||
},
|
||||
"amixer": {
|
||||
"muted": {
|
||||
|
|
Loading…
Reference in a new issue