diff options
Diffstat (limited to 'services/BeatDetector.qml')
| -rw-r--r-- | services/BeatDetector.qml | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/services/BeatDetector.qml b/services/BeatDetector.qml deleted file mode 100644 index 24e19ec..0000000 --- a/services/BeatDetector.qml +++ /dev/null @@ -1,23 +0,0 @@ -pragma Singleton - -import qs.utils -import Quickshell -import Quickshell.Io - -Singleton { - id: root - - property real bpm: 150 - - Process { - running: true - command: [`${Paths.libdir}/beat_detector`, "--no-log", "--no-stats", "--no-visual"] - stdout: SplitParser { - onRead: data => { - const match = data.match(/BPM: ([0-9]+\.[0-9])/); - if (match) - root.bpm = parseFloat(match[1]); - } - } - } -} |