feat: switch to pw-mon fow pipewire
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user