2024-03-08 10:30:44 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import Quickshell
|
|
|
|
import Quickshell.Wayland
|
|
|
|
|
|
|
|
ShellRoot {
|
|
|
|
AuthContext {
|
|
|
|
id: authContext
|
|
|
|
onSuccess: {
|
|
|
|
lock.locked = false;
|
|
|
|
Qt.quit()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SessionLock {
|
|
|
|
id: lock
|
|
|
|
locked: true
|
|
|
|
|
|
|
|
SessionLockSurface {
|
2024-03-08 13:13:08 +00:00
|
|
|
id: surface
|
2024-03-08 10:30:44 +00:00
|
|
|
Image {
|
|
|
|
anchors.fill: parent
|
|
|
|
source: screen.name == "DP-1" ? "../5120x1440.png" : "../1920x1080.png"
|
|
|
|
}
|
|
|
|
|
|
|
|
Lockscreen {
|
|
|
|
anchors.fill: parent
|
|
|
|
context: authContext
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|