Recognize outputs with 'bluez' in monitor name as bluetooth class

pull/1795/head
Maximilian Schmidt 2022-11-16 18:53:19 +01:00
parent 56b4a11a9c
commit 8c24e26f0e
No known key found for this signature in database
GPG Key ID: 3B1877E05AC6A1EA
1 changed files with 2 additions and 1 deletions

View File

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