SFWBAR-ALSA(1)
π NAME π
okay so bestie, gather round: this is sfwbar-alsa, aka the Sfwbar ALSA module. it's the little guy that lets your bar talk to your sound system. no cap.
- Filename:
alsactl.so - Requires:
libasound
so like, that's the file it lives in and the library it needs. noted. β¨
πΈ SYNOPSIS πΈ
the ALSA module is literally your backstage pass to the ALSA sound system β it gives you an interface to query and adjust its settings. that's the whole vibe. π
β¨ EXPRESSION FUNCTIONS β¨
π¦ Alsa(Query[,Element])
Alsa(Query[,Element])
Alsa is the function that goes and asks the ALSA system "hey girl what's your status". Query is the thing you wanna know, and the optional Element is the mixer element you want that query to apply to. if you don't pass an Element, the query just goes to the "Master" element, or to the current card. easy.
here's what you can ask for, the supported query types:
"playback-volume"β the volume of a sink. π"playback-mute"β the muted state of the sink. π"capture-volume"β the volume of a source. π€"capture-mute"β the muted state of the source. π€«
π ACTIONS π
π AlsaCmd [Interface,],Command
AlsaCmd [Interface,],Command
this one is for manipulating stuff, not just looking at it. it changes the state of the interface. and if you don't specify the interface? no worries, the Command just gets applied to the current interface. slay.
the commands, bestie:
"playback-volume +/-X"β adjust the playback volume byX%. and listen: if that value isn't prefixed by either+or-, then the volume gets set to the percentage valueXinstead of nudged. so+10means "turn it up by 10", but plain10means "make it 10". big difference, iykyk."playback-mute State"β change the playback mute state.Statecan beOn,OfforToggle. ποΈ"capture-volume +/-X"β adjust the capture volume byX%. same deal as playback: if the value isn't prefixed by either+or-, the volume is set to the percentage valueX."capture-mute State"β change the capture mute state.Statecan beOn,OfforToggle.
π AlsaSetCard Card
AlsaSetCard Card
pick your ALSA sound card, bestie. this action takes one parameter, and that parameter is a card name. and by default β like, if you don't say anything β the module just uses the "default" card. iconic behaviour honestly. π
π₯ TRIGGERS π₯
this module defines exactly one trigger, and it's called "Alsa". it gets emitted whenever the state of the ALSA system changes. so like, sound stuff moves β trigger fires. that's the whole thing. π«Ά
π COPYRIGHT π
GPLv3+
and that's a wrap, angel! π this little page came out of the General Commands Manual and it's all about sfwbar-alsa(1) β so go forth, control your volume, and be the main character of your own sound system. periodt. πβ¨π¦
π¦ where this page comes from
- ubuntu noble: sfwbar 1.0~beta13-1build2 Β· GPL-3.0-only
- ubuntu questing: sfwbar 1.0~beta13-1build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms