mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	Allow sink in addition to source for pulse icon
This commit is contained in:
		@@ -211,7 +211,7 @@ static const std::array<std::string, 9> ports = {
 | 
				
			|||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const std::vector<std::string> waybar::modules::Pulseaudio::getPulseIcon() const {
 | 
					const std::vector<std::string> waybar::modules::Pulseaudio::getPulseIcon() const {
 | 
				
			||||||
  std::vector<std::string> res = {default_source_name_};
 | 
					  std::vector<std::string> res = {current_sink_name_, default_source_name_};
 | 
				
			||||||
  std::string nameLC = port_name_ + form_factor_;
 | 
					  std::string nameLC = port_name_ + form_factor_;
 | 
				
			||||||
  std::transform(nameLC.begin(), nameLC.end(), nameLC.begin(), ::tolower);
 | 
					  std::transform(nameLC.begin(), nameLC.end(), nameLC.begin(), ::tolower);
 | 
				
			||||||
  for (auto const &port : ports) {
 | 
					  for (auto const &port : ports) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user