Feature: Added Volume Sink

This commit is contained in:
2026-08-27 11:21:41 +01:00
parent ef06a96757
commit 3ae5c57303

View File

@@ -40,6 +40,12 @@ Item {
enabled: panel.visible enabled: panel.visible
} }
PwNodePeakMonitor {
id: outputPeak
node: root.sink
enabled: panel.visible
}
// --- Device label/icon heuristics, ported from omarchy's audio panel // --- Device label/icon heuristics, ported from omarchy's audio panel
// Model.js (github.com/basecamp/omarchy shell/plugins/panels/audio/Model.js), // Model.js (github.com/basecamp/omarchy shell/plugins/panels/audio/Model.js),
// adapted to this project's Material Symbols icon set instead of Nerd Font. // adapted to this project's Material Symbols icon set instead of Nerd Font.
@@ -375,6 +381,11 @@ Item {
onMoved: (v) => { if (root.sink && root.sink.audio) root.sink.audio.volume = v } onMoved: (v) => { if (root.sink && root.sink.audio) root.sink.audio.volume = v }
} }
LevelMeter {
width: parent.width
level: outputPeak.peak
}
Column { Column {
width: parent.width width: parent.width
spacing: 2 spacing: 2
@@ -425,6 +436,7 @@ Item {
level: inputPeak.peak level: inputPeak.peak
} }
Column { Column {
width: parent.width width: parent.width
spacing: 2 spacing: 2