import Players from "@/services/players"; import { osIcon, osId } from "@/utils/system"; import Slider from "@/widgets/slider"; import { bind, GLib, monitorFile, Variable } from "astal"; import { Gtk } from "astal/gtk3"; 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 = () => (