nixnew/modules/user/modules/quickshell/shell/greeter.qml

38 lines
543 B
QML

import QtQuick
import Quickshell
import Quickshell.Wayland
import Quickshell.Services.Greetd
import ".."
import "lock"
ShellRoot {
GreeterContext {
id: context
onLaunch: {
lock.locked = false;
Greetd.launch(["hyprland"]);
}
}
WlSessionLock {
id: lock
locked: true
WlSessionLockSurface {
id: lockSurface
BackgroundImage {
id: backgroundImage
anchors.fill: parent
screen: lockSurface.screen
asynchronous: true
}
LockContent {
anchors.fill: parent
state: context.state
}
}
}
}