diff --git a/modules/osd/index.ts b/modules/osd/index.ts index a639119..187c609 100644 --- a/modules/osd/index.ts +++ b/modules/osd/index.ts @@ -67,7 +67,10 @@ const renderOSD = () => { }, "notify::kbd") self.hook(audio.speaker, () => { handleReveal(self, "reveal_child"); - }) + }, "notify::volume") + self.hook(audio.speaker, () => { + handleReveal(self, "visible"); + }, "notify::is-muted") }, child: Widget.Box({ @@ -125,7 +128,10 @@ export default () => Widget.Window({ }, "notify::kbd") self.hook(audio.speaker, () => { handleReveal(self, "visible"); - }) + }, "notify::volume") + self.hook(audio.speaker, () => { + handleReveal(self, "visible"); + }, "notify::is-muted") }, })