SFWBAR-VOLUME(1)
okay bestie, pull up a chair π you just opened sfwbar-volume(1), the volume control interface page from the General Commands Manual, and honestly? it's giving main character energy for your sound server. no cap, let's get into it π
β¨ NAME β¨
sfwbar-volume β the Sfwbar volume control interface πΈ
- Filename:
alsactl.soπ - Filename:
pulsectl.soπ - Requires:
libpulse(pulsectl.so) π«Ά - Requires:
libasound(alsactl.so) π«Ά
like, two different backends, two different libs, one iconic little interface. iykyk β¨
π SYNOPSIS π
The volume control interface provides means to query and adjust the volume settings. that's it, that's the whole vibe β ask questions about volume, change volume, slay π
π EXPRESSION FUNCTIONS π
π§ Volume(Query[,Address])
function Volume queries the volume settings. The Query parameter specifies the information to query, the optional Address parameter specifies the volume control element to which the query applies. The addresses are server specific, so heads up π
- Pulse address is specified in a format
Device[:Channel]. Pulse also supports an internal address format@pulse-interface-index, this format is used for elements returned byVolumeConfand shouldn't be used directly π (fr fr, don't touch that one). - ALSA interface is specified as
Device[:Element][:Channel].
This function returns a numeric value. numbers, bestie, numbers π
The supported queries are:
"sink-volume"β the volume of a sink."sink-mute"β muted state of a sink."sink-count"β a number of sinks currently available."sink-is-default"β query whether the sink is the default sink."source-volume"β the volume of a source."source-mute"β muted state of a source."source-count"β a number of sources currently available."source-is-default"β query whether the source is the default source."client-volume"β the volume of a client."client-mute"β muted state of a client."sink-count"β a number of clients currently available.
okay yes, "sink-count" shows up twice in the original list β once for sinks and once sitting down there in the client block saying it counts clients. not me editing the sacred text π keeping it exactly as written, periodt.
π¦ VolumeInfo(Query[,Address])
Returns additional information about a volume control element. The Query parameter specified the information to get. The Address parameter specifies the address to query.
This function returns a string value. words, not numbers, we love range π
"sink-description"β a description of the sink."sink-icon"β sink icon."sink-form"β the form of the sink."sink-port"β the port name of the sink."sink-monitor"β name of the source monitor for the sink."source-description"β a description of the source."source-icon"β source icon."source-form"β the form of the source."source-port"β the port name of the source."source-monitor"β name of the sink monitor for the source."client-description"β a description of the client.
πΈ VolumeConf("Query")
Query device and channel information upon receipt of volume-conf or volume-conf-removed event. The valid Query values are:
"device"β an id of a device advertised byvolume-confevent."id"β an address of a device/channel advertised byvolume-confevent."name"β name of a channel advertised byvolume-confevent."index"β ordinal of a channel advertised byvolume-confevent."removed-id"β an address of a removed device advertised byvolume-conf-removedevent.
π₯ ACTIONS π₯
ποΈ VolumeCtl [Address,],Command
Manipulate the state of the volume control. if the address isn't specified, the command will be applied to the default device for the interface. convenient much? π«Ά
"sink-volume +/-X"β Adjust the volume of a sink by X%. If the value is prefixed by neither a'+'or a'-', the volume will be set to value X."sink-mute State"β Change the state of a sink, State can beOn,OfforToggle."sink-set-default"β Set a sink as a default sink."source-volume +/-X"β Adjust the volume of a source by X%. If the value is prefixed by neither a'+'or a'-', the volume will be set to value X."source-mute State"β Change the state of a source, State can beOn,OfforToggle."source-set-default"β Set a source as a default source."client-volume +/-X"β Adjust the volume of a client by X%. If the value is prefixed by neither a'+'or a'-', the volume will be set to value X."client-mute State"β Change the state of a client, State can beOn,OfforToggle."client-set-default"β Set a client as a default client."client-set-sink"β Redirect a client to a specified sink.
π« VolumeAck Type
Notify the module that all information for the currently advertised element been processed. The Type corresponds to a trigger event ack'ed, i.e. volume-conf or volume-conf-removed. The module may then emit another conf event if further updates are available. ack it and see what happens next, bestie β¨
π TRIGGERS π
volumeβ a signal emitted whenever the state of the sound server changes.volume-confβ emitted when a new or updated volume control element information is available.volume-conf-removedβ emitted when a volume control element is removed.
π COPYRIGHT π
GPLv3+ β free as in iconic π¦
okay that's the whole page, and yes, the very last line of the original just says SFWBAR-VOLUME(1) again with nothing else attached β no extra version string, no date, just the manual name flexing one more time at the bottom π
so that's your source and your signature, bestie: sfwbar-volume(1), General Commands Manual, out here being the volume queen she is ππβ¨
π¦ where this page comes from
- fedora 43: sfwbar 1.0~beta16.1-2.fc43 Β· GPL-3.0-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms