mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Merge pull request #1795 from schmidma/bluez-output-detection
This commit is contained in:
commit
833dcc1bb8
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user