From 09194fca3251f030770caca098733fdbb778d0e7 Mon Sep 17 00:00:00 2001 From: Mephisto <38382271+NotMephisto@users.noreply.github.com> Date: Tue, 3 Jun 2025 21:24:46 +0300 Subject: [PATCH] Added conditions for displaying icons for OSD --- ags/window/OSD.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ags/window/OSD.ts b/ags/window/OSD.ts index 5a5b8ae..df43d8d 100644 --- a/ags/window/OSD.ts +++ b/ags/window/OSD.ts @@ -46,7 +46,8 @@ export const OSD = (mon: number) => { children: [ new Widget.Icon({ className: "icon", - icon: bind(Wireplumber.getDefault().getDefaultSink(), "volumeIcon") + icon: bind(Wireplumber.getDefault().getDefaultSink(), "volumeIcon").as(icon => + !Wireplumber.getDefault().isMutedSink() && Wireplumber.getDefault().getSinkVolume() > 0 ? icon : "audio-volume-muted-symbolic"), } as Widget.IconProps), new Widget.Box({ className: "volume",