mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
[modules/pulseaudio] fix bluetooth class for PipeWire
apparently, pipewire-pulse slightly changed the naming of the sink.
This commit is contained in:
parent
66d8035ed1
commit
2213380dc0
@ -210,7 +210,8 @@ auto waybar::modules::Pulseaudio::update() -> void {
|
|||||||
std::string tooltip_format;
|
std::string tooltip_format;
|
||||||
if (!alt_) {
|
if (!alt_) {
|
||||||
std::string format_name = "format";
|
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";
|
format_name = format_name + "-bluetooth";
|
||||||
label_.get_style_context()->add_class("bluetooth");
|
label_.get_style_context()->add_class("bluetooth");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user