forked from Shinonome/dots-hyprland
23 lines
495 B
QML
23 lines
495 B
QML
import QtQuick
|
|
import qs.services
|
|
import qs.modules.waffle.looks
|
|
|
|
OSDValue {
|
|
id: root
|
|
iconName: WIcons.volumeIcon
|
|
value: Audio.sink?.audio.volume ?? 0
|
|
|
|
Connections {
|
|
// Listen to volume changes
|
|
target: Audio.sink?.audio ?? null
|
|
function onVolumeChanged() {
|
|
if (Audio.ready)
|
|
root.timer.restart();
|
|
}
|
|
function onMutedChanged() {
|
|
if (Audio.ready)
|
|
root.timer.restart();
|
|
}
|
|
}
|
|
}
|