summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml2
-rw-r--r--accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml15
2 files changed, 11 insertions, 6 deletions
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 {
27 Pipewire.defaultAudioSink.audio.muted = !Pipewire.defaultAudioSink.audio.muted; 27 Pipewire.defaultAudioSink.audio.muted = !Pipewire.defaultAudioSink.audio.muted;
28 } 28 }
29 29
30 property real sensitivity: (1 / 20) / 120 30 property real sensitivity: (1 / 40) / 120
31 onWheel: event => { 31 onWheel: event => {
32 if (!Pipewire.defaultAudioSink) 32 if (!Pipewire.defaultAudioSink)
33 return; 33 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 {
15 } 15 }
16 16
17 Connections { 17 Connections {
18 enabled: Pipewire.defaultAudioSink
18 target: Pipewire.defaultAudioSink?.audio 19 target: Pipewire.defaultAudioSink?.audio
19 20
20 function onVolumeChanged() { 21 function onVolumeChanged() {
21 root.show = true; 22 root.show = true;
22 hideTimer.reset(); 23 hideTimer.restart();
23 } 24 }
24 function onMutedChanged() { 25 function onMutedChanged() {
25 root.show = true; 26 root.show = true;
26 hideTimer.reset(); 27 hideTimer.restart();
27 } 28 }
28 } 29 }
29 30
@@ -34,7 +35,7 @@ Scope {
34 35
35 Timer { 36 Timer {
36 id: hideTimer 37 id: hideTimer
37 interval: 2000 38 interval: 1000
38 onTriggered: root.show = false 39 onTriggered: root.show = false
39 } 40 }
40 41
@@ -42,7 +43,10 @@ Scope {
42 id: startInhibit 43 id: startInhibit
43 interval: 100 44 interval: 100
44 running: true 45 running: true
45 onTriggered: root.inhibited = false; 46 onTriggered: {
47 root.show = false;
48 root.inhibited = false;
49 }
46 } 50 }
47 51
48 LazyLoader { 52 LazyLoader {
@@ -62,8 +66,9 @@ Scope {
62 screen: screenScope.modelData 66 screen: screenScope.modelData
63 67
64 anchors.top: true 68 anchors.top: true
65 margins.top: (screen.height - window.height) / 2 69 margins.top: screen.height / 2 - 50 + 3.5
66 exclusiveZone: 0 70 exclusiveZone: 0
71 exclusionMode: ExclusionMode.Ignore
67 72
68 implicitWidth: 400 73 implicitWidth: 400
69 implicitHeight: 50 74 implicitHeight: 50