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, _):
|
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
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in a new issue