32 lines
566 B
QML
32 lines
566 B
QML
import Quickshell
|
|
import Quickshell.Wayland
|
|
|
|
ShellRoot {
|
|
// This stores all the information shared between the lock surfaces on each screen.
|
|
LockContext {
|
|
id: lockContext
|
|
|
|
onUnlocked: {
|
|
// Unlock the screen before exiting, or the compositor will display a
|
|
// fallback lock you can't interact with.
|
|
lock.locked = false;
|
|
|
|
Qt.quit();
|
|
}
|
|
}
|
|
|
|
WlSessionLock {
|
|
id: lock
|
|
|
|
// Lock the session immediately when quickshell starts.
|
|
locked: true
|
|
|
|
WlSessionLockSurface {
|
|
LockSurface {
|
|
anchors.fill: parent
|
|
context: lockContext
|
|
}
|
|
}
|
|
}
|
|
}
|