From df1632d1c15cba4b7a361f8159b9988919ef8277 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 8 Sep 2025 21:29:30 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml') diff --git a/accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml b/accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml index 3a78d91b..02dcf227 100644 --- a/accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml +++ b/accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml @@ -15,15 +15,16 @@ Scope { } Connections { + enabled: Pipewire.defaultAudioSink target: Pipewire.defaultAudioSink?.audio function onVolumeChanged() { root.show = true; - hideTimer.reset(); + hideTimer.restart(); } function onMutedChanged() { root.show = true; - hideTimer.reset(); + hideTimer.restart(); } } @@ -34,7 +35,7 @@ Scope { Timer { id: hideTimer - interval: 2000 + interval: 1000 onTriggered: root.show = false } @@ -42,7 +43,10 @@ Scope { id: startInhibit interval: 100 running: true - onTriggered: root.inhibited = false; + onTriggered: { + root.show = false; + root.inhibited = false; + } } LazyLoader { @@ -62,8 +66,9 @@ Scope { screen: screenScope.modelData anchors.top: true - margins.top: (screen.height - window.height) / 2 + margins.top: screen.height / 2 - 50 + 3.5 exclusiveZone: 0 + exclusionMode: ExclusionMode.Ignore implicitWidth: 400 implicitHeight: 50 -- cgit v1.2.3