mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-15 21:39:57 -05:00
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