forked from external/yambar
With this patch, a non-existing ALSA device is no longer considered a fatal error. Instead, we keep retrying until we succeed. Furthermore, if we have successfully opened the ALSA device, and it then disappears, we a) no longer crash, or cause 100% CPU usage, and b) try to re-connect to the device. With this, we now handle e.g. USB soundcards being disconnected and then re-connected. We should also handle pseudo devices, like pipewire provides ones, when yambar is started before pipewire. Closes #59 Closes #61 Closes #86
54 lines
855 B
Markdown
54 lines
855 B
Markdown
yambar-modules-alsa(5)
|
|
|
|
# NAME
|
|
alsa - Monitors an alsa soundcard for volume and mute/unmute changes
|
|
|
|
# TAGS
|
|
|
|
[[ *Name*
|
|
:[ *Type*
|
|
:[ *Description*
|
|
| online
|
|
: bool
|
|
: True when the ALSA device has successfully been opened
|
|
| volume
|
|
: range
|
|
: Volume level, with min and max as start and end range values
|
|
| percent
|
|
: range
|
|
: Volume level, as a percentage
|
|
| muted
|
|
: bool
|
|
: True if muted, otherwise false
|
|
|
|
|
|
# CONFIGURATION
|
|
|
|
[[ *Name*
|
|
:[ *Type*
|
|
:[ *Req*
|
|
:[ *Description*
|
|
| card
|
|
: string
|
|
: yes
|
|
: The soundcard name. *default* might work.
|
|
| mixer
|
|
: string
|
|
: yes
|
|
: Mixer channel to monitor. _Master_ might work.
|
|
|
|
# EXAMPLES
|
|
|
|
```
|
|
bar:
|
|
left:
|
|
- alsa:
|
|
card: hw:PCH
|
|
mixer: Master
|
|
content: {string: {text: "{volume}"}}
|
|
```
|
|
|
|
# SEE ALSO
|
|
|
|
*yambar-modules*(5), *yambar-particles*(5), *yambar-tags*(5), *yambar-decorations*(5)
|
|
|