mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-08 00:09:27 -05:00
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();
|
|
}
|
|
}
|
|
}
|