26 lines
552 B
QML
26 lines
552 B
QML
import QtQuick
|
|
import Quickshell
|
|
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
|
|
}
|
|
} |