From 17bee0e3854163c9ce142b502d8dad30caa52c5d Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 13 Apr 2025 22:15:25 +1000 Subject: feat: add music visualiser --- src/modules/sidebar/dashboard.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/modules/sidebar/dashboard.tsx') diff --git a/src/modules/sidebar/dashboard.tsx b/src/modules/sidebar/dashboard.tsx index df7be2b..1a8626f 100644 --- a/src/modules/sidebar/dashboard.tsx +++ b/src/modules/sidebar/dashboard.tsx @@ -1,4 +1,5 @@ import Players from "@/services/players"; +import { lengthStr } from "@/utils/strings"; import { bindCurrentTime, osIcon } from "@/utils/system"; import Slider from "@/widgets/slider"; import { bind, GLib, monitorFile, Variable } from "astal"; @@ -7,11 +8,6 @@ import AstalMpris from "gi://AstalMpris"; import Notifications from "./modules/notifications"; import Upcoming from "./modules/upcoming"; -const lengthStr = (length: number) => - `${Math.floor(length / 60)}:${Math.floor(length % 60) - .toString() - .padStart(2, "0")}`; - const noNull = (s: string | null) => s ?? "-"; const FaceFallback = () => ( -- cgit v1.2.3-freya