feat: add notification sound and notification window enhancements. Ready for alpha.NotificationBody needs work

This commit is contained in:
Hannes
2026-08-26 00:38:20 +02:00
parent 0b20e8eb85
commit 3cd6807681
7 changed files with 193 additions and 88 deletions
@@ -7,20 +7,20 @@ import Quickshell.Services.Pipewire
Item {
id: root
PwObjectTracker {
objects: [ Pipewire.defaultAudioSource ]
}
property var audioSource: Pipewire.defaultAudioSource
property bool exists: audioSource != null
property bool exists: audioSource != null && audioSource.ready
property bool mute: audioSource?.audio?.muted ?? false
property real volume: Math.round((audioSource?.audio?.volume ?? 0) * 1000) / 10
property bool volumeChanged: false
PwObjectTracker {
objects: [ root.audioSource ]
}
Connections {
target: audioSource?.audio
target: root.audioSource?.audio
function onVolumeChanged() {
root.volumeChanged = true;