greeter: init greeter

This commit is contained in:
kossLAN 2025-06-20 12:16:19 -04:00
parent be06bf0f86
commit fc9ced0bbe
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
6 changed files with 126 additions and 37 deletions

View file

@ -1,9 +1,11 @@
pragma Singleton
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Io
import Quickshell.Wayland
import ".."
Singleton {
id: root
@ -22,9 +24,15 @@ Singleton {
}
LockContext {
id: passwordContext
id: context
onUnlocked: persist.locked = false
Connections {
target: context.state
function onUnlocked() {
persist.locked = false;
}
}
}
WlSessionLock {
@ -34,11 +42,13 @@ Singleton {
WlSessionLockSurface {
LockSurface {
state: context.state
wallpaper: ShellSettings.settings.wallpaperUrl
anchors.fill: parent
context: passwordContext
}
}
}
function init() {}
function init() {
}
}