dotfiles
bugabingas dorkfiles
owned by bugabinga
refactor(audio): drop unused streamAverage/defaultSinkVolume helpers
48eaccb20502f054205a5a58e5a51aaac375612a
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Dead since the event-driven link-state migration.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Changed files (1)
quickshell/nuguland/Audio.qml
Modified276 276 return JSON.stringify(privacyWidgetState());
279 - function streamAverage() {
280 - const streams
= audioStreams();
281 - if (streams.length
<= 0)
285 - for (
let i
= 0; i
< streams.length; i
++) total
+= nodeMuted(streams[i])
? 0 : nodeVolume(streams[i])
286 - return Math.
max(
0,
Math.
min(
1, total
/ streams.length));
289 279 function outputMutedValue() {
290 280 return nodeMuted(defaultSinkNode())
? 1 : 0;
294 284 return nodeMuted(defaultSourceNode())
? 1 : 0;
297 - function defaultSinkVolume() {
298 - return nodeVolume(defaultSinkNode());
301 287 function osd(event, value) {
318 304 function audioPanelContract() {
320 - "source":
"PipeWire service nodes plus native peak monitors",
306 + "source":
"PipeWire service nodes (event-driven link state)",
321 307 "ownedBy":
"PopoutHost.qml inline AudioPanel",
322 308 "pipewireMixerPanel":
true,
323 309 "outputSelector":
true,