diff --git a/eww/scripts/volume.py b/eww/scripts/volume.py index 59fd5c1..a3913ce 100755 --- a/eww/scripts/volume.py +++ b/eww/scripts/volume.py @@ -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() \ No newline at end of file + VolumeMonitor().run()