From 31138ffd9348990fc3221352fc40d48dfcd59141 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Sat, 1 Mar 2025 19:08:15 +1100
Subject: launcher: scheme autocomplete

---
 app.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'app.tsx')

diff --git a/app.tsx b/app.tsx
index 0739d01..d97d41d 100644
--- a/app.tsx
+++ b/app.tsx
@@ -7,8 +7,9 @@ import Session from "@/modules/session";
 import Monitors from "@/services/monitors";
 import Palette from "@/services/palette";
 import Players from "@/services/players";
+import Schemes from "@/services/schemes";
 import type PopupWindow from "@/widgets/popupwindow";
-import { execAsync, writeFileAsync } from "astal";
+import { execAsync, idle, writeFileAsync } from "astal";
 import { App } from "astal/gtk3";
 import { initConfig, updateConfig } from "config";
 
@@ -38,6 +39,9 @@ App.start({
         Monitors.get_default().forEach(m => <Bar monitor={m} />);
         <Popdowns />;
 
+        // Init services
+        idle(() => Schemes.get_default());
+
         console.log(`Caelestia started in ${Date.now() - now}ms`);
     },
     requestHandler(request, res) {
-- 
cgit v1.2.3-freya

