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/PipewireWidget.qml | 2 +- accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'accounts/gkleen@sif/shell') diff --git a/accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml b/accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml index 5bf0ac3a..7fdb5006 100644 --- a/accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml +++ b/accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml @@ -27,7 +27,7 @@ Item { Pipewire.defaultAudioSink.audio.muted = !Pipewire.defaultAudioSink.audio.muted; } - property real sensitivity: (1 / 20) / 120 + property real sensitivity: (1 / 40) / 120 onWheel: event => { if (!Pipewire.defaultAudioSink) return; 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