WIP cava process
This commit is contained in:
26
quickshell/services/CavaService.qml
Normal file
26
quickshell/services/CavaService.qml
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user