import Quickshell import QtQuick import Quickshell.Io import Quickshell.Hyprland ShellRoot { id: shell property bool launcherOpen: true property AppConfig config: AppConfig {} function goToEmptyWorkspace(): void { Hyprland.dispatch("workspace empty"); } IpcHandler { target: "launcher" function toggle(): void { if (shell.config.backgroundMode) shell.goToEmptyWorkspace(); else shell.launcherOpen = !shell.launcherOpen; } function open(): void { if (shell.config.backgroundMode) shell.goToEmptyWorkspace(); else shell.launcherOpen = true; } function close(): void { if (!shell.config.backgroundMode) shell.launcherOpen = false; } } LauncherWindow { shellOpen: shell.launcherOpen backgroundMode: shell.config.backgroundMode onRequestClose: { if (!shell.config.backgroundMode) shell.launcherOpen = false } apps: shell.config.appConfig enableCacheFolder: shell.config.enableCacheFolder } }