logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

alsa - Monitors an alsa soundcard for volume and mute/unmute changes

Configuration

┌────────┬────────┬─────┬───────────────────────────────────────────────────────────────────────────────┐ │ NameTypeReqDescription │ ├────────┼────────┼─────┼───────────────────────────────────────────────────────────────────────────────┤ │ card │ string │ yes │ The soundcard name. default might work. │ ├────────┼────────┼─────┼───────────────────────────────────────────────────────────────────────────────┤ │ mixer │ string │ yes │ Mixer channel to monitor. Master might work. │ ├────────┼────────┼─────┼───────────────────────────────────────────────────────────────────────────────┤ │ volume │ string │ no │ The name of the channel to use as source for the volume level (default: first │ │ │ │ │ available channel, usually "Front Left"). │ ├────────┼────────┼─────┼───────────────────────────────────────────────────────────────────────────────┤ │ muted │ string │ no │ The name of the channel to use as source for the muted state (default: first │ │ │ │ │ available channel, usually "Front Left"). │ └────────┴────────┴─────┴───────────────────────────────────────────────────────────────────────────────┘

Examples

bar: left: - alsa: card: hw:PCH mixer: Master content: {string: {text: "{volume}"}}

Name

alsa - Monitors an alsa soundcard for volume and mute/unmute changes

See Also

yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5) 2024-04-20 yambar-modules-alsa(5)

Tags

┌─────────┬───────┬─────────────────────────────────────────────────────────────────────────────────────┐ │ NameTypeDescription │ ├─────────┼───────┼─────────────────────────────────────────────────────────────────────────────────────┤ │ online │ bool │ True when the ALSA device has successfully been opened │ ├─────────┼───────┼─────────────────────────────────────────────────────────────────────────────────────┤ │ dB │ range │ Volume level (in dB), with min and max as start and end range values. │ ├─────────┼───────┼─────────────────────────────────────────────────────────────────────────────────────┤ │ volume │ range │ Volume level (raw), with min and max as start and end range values │ ├─────────┼───────┼─────────────────────────────────────────────────────────────────────────────────────┤ │ percent │ range │ Volume level, as a percentage. This value is based on the dB tag if available, │ │ │ │ otherwise the volume tag. │ ├─────────┼───────┼─────────────────────────────────────────────────────────────────────────────────────┤ │ muted │ bool │ True if muted, otherwise false │ └─────────┴───────┴─────────────────────────────────────────────────────────────────────────────────────┘

See Also