From 6a043ce106dd853da4837a4fa1e68c2a6d67093b Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:25:42 +1100 Subject: config: restore to default if not specified Restore configs to default if not given in the config file instead of not changing them Also sideleft configs --- src/modules/popdowns/sideleft.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/modules/popdowns/sideleft.tsx b/src/modules/popdowns/sideleft.tsx index fdf3e4f..753026e 100644 --- a/src/modules/popdowns/sideleft.tsx +++ b/src/modules/popdowns/sideleft.tsx @@ -7,6 +7,7 @@ import PopupWindow from "@/widgets/popupwindow"; import { bind, execAsync, GLib, type Binding } from "astal"; import { App, Gtk, type Widget } from "astal/gtk3"; import type cairo from "cairo"; +import { sideleft } from "config"; const fmt = (bytes: number, pow: number) => +(bytes / 1024 ** pow).toFixed(2); const format = ({ total, used }: { total: number; used: number }) => { @@ -62,13 +63,14 @@ const QuickLaunch = () => ( ); -const Location = ({ home, label, num }: { home?: boolean; label: string; num: number }) => ( +const Location = ({ label, num }: { label: Binding; num: number }) => (