From 3b5fdcb31ea27015f22fac8470bdac2e8459d100 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 5 Sep 2024 07:16:17 +0400 Subject: [PATCH] ags fix volume --- config/ags/config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/ags/config.js b/config/ags/config.js index 3b58aa73..1d98fd8b 100644 --- a/config/ags/config.js +++ b/config/ags/config.js @@ -115,9 +115,10 @@ function Volume() { const volume = Widget.Label({ // label: Math.round(audio.speaker.volume * 100).toString(), - label: !audio.speaker.is_muted - ? ` ${Math.round(audio.speaker.volume * 100).toString()}` - : "", + // label: !audio.speaker.is_muted + // ? ` ${Math.round(audio.speaker.volume * 100).toString()}` + // : "", + label: audio.speaker.bind("volume").as((x) => `${Math.round(x * 100)}%`) }) return Widget.Box({