~/swaydesk/components/audio

← All components

Audio

Audio

Audio

Volume and mute for the output and the microphone, and which device each one uses.

  • Output and Input each have a slider with the percentage and a Mute button.
  • Each section lists its devices, with the current one in the accent color.
  • Speakers and headphones on the same sound card show up as separate entries.
  • Picking an entry switches the card’s port when it’s a port, then makes it the default device; WirePlumber remembers it.
  • The popup follows the volume keys and a headset being plugged in, live.
  • Scroll on the icon changes the volume by 1%, up to 100%, with the on-screen indicator.
  • Right click mutes or unmutes the output.
  • Middle click or More options opens pavucontrol.
  • The icon’s tooltip shows the volume and the current device.

Rust + GTK 4 · source · More in the guide · turn off: [enabled.bar] volume = false

Install it alone

Only this component, without the full session. First add the Swaydesk repository, as on the page Install.

Debian 13

sudo apt install swaydesk-audio

Ubuntu 26.04 · Mint 27

sudo apt install swaydesk-audio

Arch Linux

sudo pacman -Syu swaydesk-audio wireplumber libpulse

pacman doesn't install optional dependencies, so the line already has the ones apt installs by itself.

Start it on plain Sway

It starts from its Waybar module, below.

In Waybar

In ~/.config/waybar/config.jsonc, add "custom/swaydesk-audio" to modules-left, modules-center or modules-right, and paste the module from this file next to your other modules:

/usr/share/swaydesk/waybar/swaydesk-audio.jsonc

The file's first lines say what each click does. The icons come from the Symbols Nerd Font, which the package brings.

Shortcuts

Click the volume (middle click: pavucontrol)

Those of the Swaydesk profile, the default. The other profiles are in Shortcuts.