SFWBAR-VOLUME(1)

πŸ“¦
version 1.0~beta16.1 Β· 4 versions
, in fedora 43

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 by VolumeConf and 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 by volume-conf event.
  • "id" β€” an address of a device/channel advertised by volume-conf event.
  • "name" β€” name of a channel advertised by volume-conf event.
  • "index" β€” ordinal of a channel advertised by volume-conf event.
  • "removed-id" β€” an address of a removed device advertised by volume-conf-removed event.

πŸ”₯ 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 be On, Off or Toggle.
  • "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 be On, Off or Toggle.
  • "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 be On, Off or Toggle.
  • "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.

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