enkore / i3pystatus

A complete replacement for i3status
https://i3pystatus.readthedocs.io/
MIT License
445 stars 188 forks source link

pulseaudio: remove output when sink is gone #750

Closed sileht closed 5 years ago

sileht commented 5 years ago

When sink is set and you have USB card or Bluetooth headset.

When the sink is created, the output is set and the module appear.

But when the sink is deleted, the output is not deleted, and the module stay.

This change detects when the sink is deleted and delete the output.

chestm007 commented 5 years ago

closing and reopening to trigger a rebuild