nosignal-shell/services/BeatDetector.qml
2025-06-15 17:20:14 +10:00

18 lines
342 B
QML

pragma Singleton
import Quickshell
import Quickshell.Io
Singleton {
id: root
property real bpm
Process {
running: true
command: ["/usr/lib/caelestia/beat_detector", "--no-log", "--no-stats", "--no-visual"]
stdout: SplitParser {
onRead: data => root.bpm = parseFloat(data)
}
}
}