From 6f7577467a5eea0531e4c89069665cc962ccebac Mon Sep 17 00:00:00 2001 From: Myryk Date: Wed, 29 May 2024 17:54:11 +0200 Subject: [PATCH] Indicator now pops up if volume changes --- .config/ags/modules/indicators/indicatorvalues.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/ags/modules/indicators/indicatorvalues.js b/.config/ags/modules/indicators/indicatorvalues.js index 5d8c1e680..8b5a15a4d 100644 --- a/.config/ags/modules/indicators/indicatorvalues.js +++ b/.config/ags/modules/indicators/indicatorvalues.js @@ -86,7 +86,10 @@ export default (monitor = 0) => { }), progressSetup: (self) => self.hook(Audio, (progress) => { const updateValue = Audio.speaker?.volume; - if (!isNaN(updateValue)) progress.value = updateValue; + if (!isNaN(updateValue)) { + if (updateValue != progress.value) Indicator.popup(1); + progress.value = updateValue; + } }), }); return MarginRevealer({