forked from Shinonome/dots-hyprland
Indicator now pops up if volume changes
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user