pragma Singleton import QtQuick import Quickshell import Quickshell.Io import "../core" Singleton { id: root property var window: null IpcHandler { target: "launcher" function toggle(): void { ShellState.toggleLauncher(); } function open(): void { ShellState.openLauncher(); } function close(): void { ShellState.launcherOpen = false; } function status(): string { return JSON.stringify({ opened: ShellState.launcherOpen, screen: root.window && root.window.screen ? root.window.screen.name : "", ready: !!root.window }); } } }