1
0
Fork 0

lockscreen: replace lockscreen example

The new one uses the pam module and looks much nicer.
This commit is contained in:
outfoxxed 2024-06-18 17:14:51 -07:00
parent c30a4faf18
commit a64b477dea
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
9 changed files with 190 additions and 126 deletions

View file

@ -2,17 +2,24 @@ import QtQuick
import Quickshell
ShellRoot {
AuthContext {
id: authContext
onUnlocked: Qt.quit()
LockContext {
id: lockContext
onUnlocked: Qt.quit();
}
FloatingWindow {
color: "#303030"
Lockscreen {
LockSurface {
anchors.fill: parent
context: authContext
context: lockContext
}
}
// exit the example if the window closes
Connections {
target: Quickshell
function onLastWindowClosed() {
Qt.quit();
}
}
}