38 lines
651 B
QML
38 lines
651 B
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
|
|
ShellRoot {
|
|
id: shell
|
|
|
|
property bool barOpen: false
|
|
|
|
Compositor {
|
|
id: compositor
|
|
}
|
|
|
|
Theme {
|
|
id: theme
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
if (compositor.kind === "")
|
|
console.warn("workspace-rename: neither niri nor Hyprland was detected");
|
|
}
|
|
|
|
IpcHandler {
|
|
target: "wsname"
|
|
|
|
function toggle(): void {
|
|
shell.barOpen = !shell.barOpen;
|
|
}
|
|
}
|
|
|
|
RenameBar {
|
|
shellOpen: shell.barOpen
|
|
compositor: compositor
|
|
theme: theme
|
|
onRequestClose: shell.barOpen = false
|
|
}
|
|
}
|