diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-13 22:15:25 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-13 22:15:25 +1000 |
| commit | 17bee0e3854163c9ce142b502d8dad30caa52c5d (patch) | |
| tree | e8e34d1335fddcd66a196b84ef71bc64fc7a8480 /src/modules/sidebar/dashboard.tsx | |
| parent | navbar: config show labels (diff) | |
| download | caelestia-shell-17bee0e3854163c9ce142b502d8dad30caa52c5d.tar.gz caelestia-shell-17bee0e3854163c9ce142b502d8dad30caa52c5d.tar.bz2 caelestia-shell-17bee0e3854163c9ce142b502d8dad30caa52c5d.zip | |
feat: add music visualiser
Diffstat (limited to 'src/modules/sidebar/dashboard.tsx')
| -rw-r--r-- | src/modules/sidebar/dashboard.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
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 = () => ( |