Files
skygqts/workspace-manager/shell.qml
T
2026-09-23 11:24:58 -04:00

47 lines
818 B
QML

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()
}
}