[modules] Add pulseaudio control modules

Add a module that retrieve mute status and volume (left, right, mono)
from pulseaudio. Unfortunately, this module is really, really hacky. It
invokes "pactl" multiple times to get the status and does some ugly
parsing on the output.

Overall, this is pretty brittle and prone to failure, but as I was not
able to find a decent pulseaudio library for Python... Probably, I
haven't searched hard enough, cannot believe such a thing does not
exist.
This commit is contained in:
Tobias Witek 2016-10-31 14:27:51 +01:00
parent bb6ca556c7
commit b0608c7054
5 changed files with 94 additions and 1 deletions

View file

@ -35,6 +35,26 @@
"disk": {
"prefix": "  "
},
"pasink": {
"states": {
"muted": {
"prefix": "  "
},
"unmuted": {
"prefix": "  "
}
}
},
"pasource": {
"states": {
"muted": {
"prefix": "  "
},
"unmuted": {
"prefix": "  "
}
}
},
"nic": {
"states": {
"wireless-up": {