Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.3 KiB
QML
46 lines
1.3 KiB
QML
pragma ComponentBehavior: Bound
|
|
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
|
|
// The session lock (ext-session-lock: one surface per output) plus the
|
|
// preview, which shows the same UI in ordinary overlay windows.
|
|
Scope {
|
|
WlSessionLock {
|
|
locked: LockState.locked
|
|
WlSessionLockSurface {
|
|
id: surface
|
|
color: "#000000"
|
|
LockSurface {
|
|
anchors.fill: parent
|
|
screenName: surface.screen ? surface.screen.name : ""
|
|
}
|
|
}
|
|
}
|
|
Variants {
|
|
model: LockState.previewing ? Quickshell.screens : []
|
|
// qmllint disable uncreatable-type
|
|
PanelWindow {
|
|
id: previewWindow
|
|
required property var modelData
|
|
screen: modelData
|
|
anchors {
|
|
top: true
|
|
bottom: true
|
|
left: true
|
|
right: true
|
|
}
|
|
color: "#000000"
|
|
exclusionMode: ExclusionMode.Ignore
|
|
WlrLayershell.layer: WlrLayer.Overlay
|
|
WlrLayershell.namespace: "glassMxrph-lock-preview"
|
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
|
LockSurface {
|
|
anchors.fill: parent
|
|
screenName: previewWindow.modelData.name
|
|
preview: true
|
|
}
|
|
}
|
|
}
|
|
}
|