improve config for cava and add base for equalizer. It works but needs some performance fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user