marioortizmanero / polybar-pulseaudio-control

A feature-full Polybar module to control PulseAudio
MIT License
478 stars 49 forks source link

added glob matching for nicknames #57

Closed SPFabGerman closed 2 years ago

SPFabGerman commented 2 years ago

I added the ability to use glob matches for the nicknames. An example where this could be usefull, is for Bluetooth devices: --sink-nickname "bluez_sink.*.a2dp_sink":"" (Normally the sinks for the Bluetooth Headsets contain the MAC-Adress, which means that every used device has to be specified manually.)

SPFabGerman commented 2 years ago

All done! I also fixed the indentation. (Seems like my editors were setup wrong and the single tab slipped through. The old problem with tabs and spaces, haha)

marioortizmanero commented 2 years ago

Great. Before merging this, do you think you could do the same for the blacklisting feature? It would surely be very helpful there too.

SPFabGerman commented 2 years ago

Done. Implementing the Glob Matching for the Backlist was super easy, because it already uses a loop. (I also found another tab, that I just got fixed by my formatter.)

marioortizmanero commented 2 years ago

Thanks again! Merging, I'll release a new version soon.