diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml b/accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml index 16fb5dea..653f4763 100644 --- a/accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml +++ b/accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml | |||
| @@ -122,6 +122,8 @@ Scope { | |||
| 122 | } else if (root.show == "source") { | 122 | } else if (root.show == "source") { |
| 123 | if (!Pipewire.defaultAudioSource || Pipewire.defaultAudioSource.audio.muted) | 123 | if (!Pipewire.defaultAudioSource || Pipewire.defaultAudioSource.audio.muted) |
| 124 | return "microphone-off"; | 124 | return "microphone-off"; |
| 125 | if (Pipewire.defaultAudioSource.audio.volume > 1) | ||
| 126 | return "microphone-plus"; | ||
| 125 | return "microphone"; | 127 | return "microphone"; |
| 126 | } | 128 | } |
| 127 | return "volume-high"; | 129 | return "volume-high"; |
| @@ -148,7 +150,7 @@ Scope { | |||
| 148 | if (root.show == "sink") | 150 | if (root.show == "sink") |
| 149 | return parent.width * (Pipewire.defaultAudioSink?.audio.volume ?? 0); | 151 | return parent.width * (Pipewire.defaultAudioSink?.audio.volume ?? 0); |
| 150 | else if (root.show == "source") | 152 | else if (root.show == "source") |
| 151 | return parent.width * (Pipewire.defaultAudioSource?.audio.volume ?? 0); | 153 | return parent.width * Math.min(1, (Pipewire.defaultAudioSource?.audio.volume ?? 0)); |
| 152 | return 0; | 154 | return 0; |
| 153 | } | 155 | } |
| 154 | } | 156 | } |
