diff --git a/man/waybar-pulseaudio.5.scd b/man/waybar-pulseaudio.5.scd index b076b6db..2b117782 100644 --- a/man/waybar-pulseaudio.5.scd +++ b/man/waybar-pulseaudio.5.scd @@ -82,6 +82,8 @@ Additionally you can control the volume by scrolling *up* or *down* while the cu # FORMAT REPLACEMENTS +*{desc}*: Pulseaudio port's description, for bluetooth it'll be the device name. + *{volume}*: Volume in percentage. *{icon}*: Icon, as defined in *format-icons*. diff --git a/src/modules/pulseaudio.cpp b/src/modules/pulseaudio.cpp index 5698d6bd..ef2bc273 100644 --- a/src/modules/pulseaudio.cpp +++ b/src/modules/pulseaudio.cpp @@ -221,6 +221,7 @@ auto waybar::modules::Pulseaudio::update() -> void { } format_source = fmt::format(format_source, fmt::arg("volume", source_volume_)); label_.set_markup(fmt::format(format, + fmt::arg("desc", desc_), fmt::arg("volume", volume_), fmt::arg("format_source", format_source), fmt::arg("icon", getIcon(volume_, getPortIcon()))));