From 05e9561fd687c15baba56fc9eeca9a29b504abd2 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 15 Jun 2025 15:43:50 +1000 Subject: internal: use stdiocollector Removes dependency on jq Also fix beatdetector --- services/BeatDetector.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/BeatDetector.qml') diff --git a/services/BeatDetector.qml b/services/BeatDetector.qml index 66bf2d4..196d40c 100644 --- a/services/BeatDetector.qml +++ b/services/BeatDetector.qml @@ -10,7 +10,7 @@ Singleton { Process { running: true - command: [`${Quickshell.shellRoot}/assets/realtime-beat-detector.py`] + command: [`${Quickshell.configDir}/assets/realtime-beat-detector.py`] stdout: SplitParser { onRead: data => root.bpm = parseFloat(data) } -- cgit v1.2.3-freya From 2a5b49f69303299c301b326e063796303d4b6b83 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 15 Jun 2025 17:14:48 +1000 Subject: internal: change beatdetector path For install via pkgbuild --- services/BeatDetector.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/BeatDetector.qml') diff --git a/services/BeatDetector.qml b/services/BeatDetector.qml index 196d40c..ba27ebe 100644 --- a/services/BeatDetector.qml +++ b/services/BeatDetector.qml @@ -10,7 +10,7 @@ Singleton { Process { running: true - command: [`${Quickshell.configDir}/assets/realtime-beat-detector.py`] + command: ["/usr/lib/caelestia/beat_detector"] stdout: SplitParser { onRead: data => root.bpm = parseFloat(data) } -- cgit v1.2.3-freya From 5ca28546816e287cee5055a278b5ecbe28ca6be5 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 15 Jun 2025 17:20:14 +1000 Subject: internal: fix beat detector --- services/BeatDetector.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/BeatDetector.qml') diff --git a/services/BeatDetector.qml b/services/BeatDetector.qml index ba27ebe..b210801 100644 --- a/services/BeatDetector.qml +++ b/services/BeatDetector.qml @@ -10,7 +10,7 @@ Singleton { Process { running: true - command: ["/usr/lib/caelestia/beat_detector"] + command: ["/usr/lib/caelestia/beat_detector", "--no-log", "--no-stats", "--no-visual"] stdout: SplitParser { onRead: data => root.bpm = parseFloat(data) } -- cgit v1.2.3-freya From 3df0f7fd26377fe30c3542fc34d7dc8d6fbf2ffa Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 15 Jun 2025 17:30:33 +1000 Subject: internal: properly fix beat detector --- services/BeatDetector.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'services/BeatDetector.qml') diff --git a/services/BeatDetector.qml b/services/BeatDetector.qml index b210801..65dd88e 100644 --- a/services/BeatDetector.qml +++ b/services/BeatDetector.qml @@ -12,7 +12,11 @@ Singleton { running: true command: ["/usr/lib/caelestia/beat_detector", "--no-log", "--no-stats", "--no-visual"] stdout: SplitParser { - onRead: data => root.bpm = parseFloat(data) + onRead: data => { + const match = data.match(/BPM: ([0-9]+\.[0-9])/); + if (match) + root.bpm = parseFloat(match[1]); + } } } } -- cgit v1.2.3-freya