feat(waybar): implement all dummy widgets

This commit is contained in:
Pihkaal
2024-07-31 15:13:53 +02:00
parent 1dcae0c20a
commit 0046e5dd82
28 changed files with 396 additions and 84 deletions

View File

@@ -1,5 +1,8 @@
import { type Child, type Icon } from "./tree";
export const lerpIcon = (icons: Array<string>, value: number, max: number) =>
icons[Math.floor((value / max) * icons.length)] ?? icons[icons.length - 1];
export const getIcon = (file: Child | string | undefined): Icon => {
if (!file) return DEFAULT_ICON;