feat: add notification sound and notification window enhancements. Ready for alpha.NotificationBody needs work
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user