diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-26 00:10:05 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-26 00:10:05 +0800 |
| commit | 90a65cd153183014ee50d74f9e32ca28165c7880 (patch) | |
| tree | 0708d313b17012620007397073e121d2f65f7f91 /services | |
| parent | bar: fix battery charging icons (diff) | |
| download | caelestia-shell-90a65cd153183014ee50d74f9e32ca28165c7880.tar.gz caelestia-shell-90a65cd153183014ee50d74f9e32ca28165c7880.tar.bz2 caelestia-shell-90a65cd153183014ee50d74f9e32ca28165c7880.zip | |
feat: dashboard media panel
Diffstat (limited to 'services')
| -rw-r--r-- | services/BeatDetector.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/services/BeatDetector.qml b/services/BeatDetector.qml new file mode 100644 index 0000000..66bf2d4 --- /dev/null +++ b/services/BeatDetector.qml @@ -0,0 +1,18 @@ +pragma Singleton + +import Quickshell +import Quickshell.Io + +Singleton { + id: root + + property real bpm + + Process { + running: true + command: [`${Quickshell.shellRoot}/assets/realtime-beat-detector.py`] + stdout: SplitParser { + onRead: data => root.bpm = parseFloat(data) + } + } +} |