import QtQuick import Quickshell import Quickshell.Io ShellRoot { id: shell property bool open: false Compositor { id: compositor } Theme { id: theme } Component.onCompleted: { if (compositor.kind === "") console.warn("workspace-manager: neither niri nor Hyprland was detected"); } function closeAll(): void { shell.open = false; } IpcHandler { target: "workspace" function toggle(): void { shell.open = !shell.open; } function goTo(): void { shell.open = true; } } GotoView { shellOpen: shell.open compositor: compositor theme: theme onRequestClose: shell.closeAll() onRequestBack: shell.closeAll() } }