1
0
Fork 0
quickshell-examples/lockscreen/shell.qml
outfoxxed a64b477dea
lockscreen: replace lockscreen example
The new one uses the pam module and looks much nicer.
2024-06-18 17:14:51 -07:00

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