feat: init lockscreen

This commit is contained in:
kossLAN 2025-06-13 13:31:06 -04:00
parent 4687b955d4
commit 15ffd6d5b0
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
14 changed files with 433 additions and 4 deletions

41
lockscreen/Controller.qml Normal file
View file

@ -0,0 +1,41 @@
pragma ComponentBehavior: Bound
import Quickshell
import Quickshell.Io
import Quickshell.Wayland
Scope {
id: root
PersistentProperties {
id: persist
property bool locked: false
}
IpcHandler {
target: "lockscreen"
function lock(): void {
persist.locked = true;
}
}
LockContext {
id: passwordContext
onUnlocked: persist.locked = false
}
WlSessionLock {
id: lock
locked: persist.locked
WlSessionLockSurface {
LockSurface {
anchors.fill: parent
context: passwordContext
}
}
}
}