feat: input mgr
This commit is contained in:
23
shell.qml
23
shell.qml
@@ -1,30 +1,21 @@
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import Quickshell.Hyprland
|
||||
import QtQuick
|
||||
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 {}
|
||||
Overlay {}
|
||||
|
||||
GlobalShortcut {
|
||||
appid: "deltarune"
|
||||
triggerDescription: "Toggle the menu"
|
||||
name: "shell_toggle"
|
||||
onReleased: {
|
||||
ShellStateManager.toggleShell();
|
||||
}
|
||||
}
|
||||
Topbar {}
|
||||
Healthbar {}
|
||||
DialogBox {}
|
||||
|
||||
InputShortcuts {}
|
||||
|
||||
IpcHandler {
|
||||
target: "deltarune.shell"
|
||||
|
||||
Reference in New Issue
Block a user