forked from Shinonome/dots-hyprland
waffles: osd
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user