Merge pull request #1081 from David96/master

[modules/pulseaudio] fix bluetooth class for PipeWire
This commit is contained in:
Alex 2021-04-25 14:03:00 +02:00 committed by GitHub
commit 5f7329f5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -210,7 +210,8 @@ auto waybar::modules::Pulseaudio::update() -> void {
std::string tooltip_format;
if (!alt_) {
std::string format_name = "format";
if (monitor_.find("a2dp_sink") != std::string::npos) {
if (monitor_.find("a2dp_sink") != std::string::npos || // PulseAudio
monitor_.find("a2dp-sink") != std::string::npos) { // PipeWire
format_name = format_name + "-bluetooth";
label_.get_style_context()->add_class("bluetooth");
} else {