feat: switch to pw-mon fow pipewire

This commit is contained in:
2026-04-21 13:42:59 +04:00
parent f91c71461b
commit a98fa33b63
+3 -3
View File
@@ -27,11 +27,11 @@ class VolumeMonitor:
def run(self):
self.push_update()
proc = subprocess.Popen(["pactl", "subscribe"], stdout=subprocess.PIPE, text=True)
proc = subprocess.Popen(["pw-mon"], stdout=subprocess.PIPE, text=True, stderr=subprocess.DEVNULL)
for line in proc.stdout:
if "sink" in line or "server" in line:
if "changed" in line:
self.push_update()
if __name__ == "__main__":
VolumeMonitor().run()
VolumeMonitor().run()