mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 01:32:42 +01:00 
			
		
		
		
	Update pulseaudio.cpp
This commit is contained in:
		@@ -200,6 +200,7 @@ const std::string waybar::modules::Pulseaudio::getPortIcon() const {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
auto waybar::modules::Pulseaudio::update() -> void {
 | 
					auto waybar::modules::Pulseaudio::update() -> void {
 | 
				
			||||||
  auto format = format_;
 | 
					  auto format = format_;
 | 
				
			||||||
 | 
					  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) {
 | 
				
			||||||
      format_name = format_name + "-bluetooth";
 | 
					      format_name = format_name + "-bluetooth";
 | 
				
			||||||
@@ -215,6 +216,7 @@ auto waybar::modules::Pulseaudio::update() -> void {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    format = 
 | 
					    format = 
 | 
				
			||||||
      config_[format_name].isString() ? config_[format_name].asString() : format;
 | 
					      config_[format_name].isString() ? config_[format_name].asString() : format;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
  // TODO: find a better way to split source/sink
 | 
					  // TODO: find a better way to split source/sink
 | 
				
			||||||
  std::string format_source = "{volume}%";
 | 
					  std::string format_source = "{volume}%";
 | 
				
			||||||
  if (source_muted_ && config_["format-source-muted"].isString()) {
 | 
					  if (source_muted_ && config_["format-source-muted"].isString()) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user