diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-11 14:43:11 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-11 14:43:11 +0200 |
| commit | aebd3235d755cb1ff95995b461e497fea2d52e8b (patch) | |
| tree | a8b2cc30a51ed06c383d7a6f53cb44f623e188c1 /accounts/gkleen@sif/shell/quickshell/VolumeOSD.qml | |
| parent | d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6 (diff) | |
| download | nixos-aebd3235d755cb1ff95995b461e497fea2d52e8b.tar nixos-aebd3235d755cb1ff95995b461e497fea2d52e8b.tar.gz nixos-aebd3235d755cb1ff95995b461e497fea2d52e8b.tar.bz2 nixos-aebd3235d755cb1ff95995b461e497fea2d52e8b.tar.xz nixos-aebd3235d755cb1ff95995b461e497fea2d52e8b.zip | |
...
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 | } |
