From 0787e00336733d2baf66ad6431d31ef6ace71de3 Mon Sep 17 00:00:00 2001 From: Jas Singh Date: Tue, 30 Jul 2024 01:17:48 -0700 Subject: [PATCH] Fixes #40 (#41) --- modules/osd/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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") }, })