39 lines
587 B
QML
39 lines
587 B
QML
import QtQuick
|
|
import Quickshell
|
|
import ".."
|
|
|
|
ShellRoot {
|
|
AuthContext {
|
|
id: authContext
|
|
onUnlocked: Qt.quit()
|
|
}
|
|
|
|
FloatingWindow {
|
|
BackgroundImage {
|
|
anchors.fill: parent
|
|
screen: Quickshell.screens.filter(s => s.name == "eDP-1")[0]
|
|
}
|
|
|
|
Lockscreen {
|
|
anchors {
|
|
left: parent.left
|
|
top: parent.top
|
|
bottom: parent.bottom
|
|
right: parent.horizontalCenter
|
|
}
|
|
|
|
context: authContext
|
|
}
|
|
|
|
Lockscreen {
|
|
anchors {
|
|
left: parent.horizontalCenter
|
|
top: parent.top
|
|
bottom: parent.bottom
|
|
right: parent.right
|
|
}
|
|
|
|
context: authContext
|
|
}
|
|
}
|
|
}
|