mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
greeter: init greeter
This commit is contained in:
parent
be06bf0f86
commit
fc9ced0bbe
6 changed files with 126 additions and 37 deletions
|
|
@ -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() {
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue