summaryrefslogtreecommitdiff
path: root/services/BeatDetector.qml
blob: b2108016775bce0a01ef24fdf5f12daf6a15c8f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
        }
    }
}