summaryrefslogtreecommitdiff
path: root/modules/dashboard/dash
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-23 00:27:30 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-23 00:27:30 +0800
commit48db317cc85cafee4d1308dee7e54cf65ebf2f77 (patch)
tree2a090f9b54b906848f47a6ca7e66c9c111aeed7b /modules/dashboard/dash
parentdashboard: media bongo cat (diff)
downloadcaelestia-shell-48db317cc85cafee4d1308dee7e54cf65ebf2f77.tar.gz
caelestia-shell-48db317cc85cafee4d1308dee7e54cf65ebf2f77.tar.bz2
caelestia-shell-48db317cc85cafee4d1308dee7e54cf65ebf2f77.zip
dashboard: media bongo cat use bpm as mult
Diffstat (limited to 'modules/dashboard/dash')
-rw-r--r--modules/dashboard/dash/Media.qml7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/dashboard/dash/Media.qml b/modules/dashboard/dash/Media.qml
index 69ff881..5d387f4 100644
--- a/modules/dashboard/dash/Media.qml
+++ b/modules/dashboard/dash/Media.qml
@@ -221,7 +221,7 @@ Item {
anchors.bottomMargin: Appearance.padding.large
anchors.margins: Appearance.padding.large * 2
- playing: false
+ playing: Players.active?.isPlaying
source: "root:/assets/bongocat.gif"
asynchronous: true
fillMode: AnimatedImage.PreserveAspectFit
@@ -231,10 +231,7 @@ Item {
running: true
command: [`${Quickshell.shellRoot}/assets/realtime-beat-detector.py`]
stdout: SplitParser {
- onRead: data => {
- if (Players.active?.isPlaying)
- bongocat.currentFrame++;
- }
+ onRead: data => bongocat.speed = parseFloat(data) / 300
}
}
}