Files
DeltaruneQuickshell/shell.qml
2026-01-23 23:45:38 +02:00

40 lines
849 B
QML

import Quickshell
import Quickshell.Io
import Quickshell.Hyprland
import "Shell"
ShellRoot {
id: baseShell
// Use the singleton directly; it controls the shell state globally.
property bool isOpen: ShellStateManager.shellOpen
WLRLayerTopbar {
visible: baseShell.isOpen
}
WLRLayerHealthbar {
visible: baseShell.isOpen
}
WLRLayerDialogBox {}
GlobalShortcut {
appid: "deltarune"
triggerDescription: "Toggle the menu"
name: "shell_toggle"
onReleased: {
ShellStateManager.toggleShell()
}
}
IpcHandler {
target: "deltarune.shell"
enabled: true
function open(): void {
ShellStateManager.openShell()
}
function close(): void {
ShellStateManager.closeShell()
}
}
}