improve config for cava and add base for equalizer. It works but needs some performance fixes

This commit is contained in:
Sem
2026-04-18 00:06:45 +02:00
parent 7bcd3220dd
commit 24b0c41ffb
7 changed files with 466 additions and 49 deletions

View File

@@ -4,23 +4,22 @@ import Quickshell.Io
Item {
id: root
signal cavaDataChanged(string data)
// Process {
// id: cavaProcess
// command: ["cat", "/tmp/cava.fifo"]
// stdout: StdioCollector {
// waitForEnd: false
// onStreamFinished: {
// console.log("Cava data: " + this.text)
// root.cavaDataChanged(this.text)
// }
// }
// }
Component.onCompleted: {
cavaProcess.running = true
Process {
id: cavaProcess
command: ["cat", "/tmp/cava.fifo"]
stdout: SplitParser {
splitMarker: "\n" // fires onRead() for each newline-delimited chunk
onRead: data => {
root.cavaDataChanged(data);
}
}
}
}
Component.onCompleted: {
cavaProcess.running = true;
}
}