nixnew/modules/hyprland/lockscreen/shell.qml

34 lines
468 B
QML

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 {
id: surface
Image {
anchors.fill: parent
source: screen.name == "DP-1" ? "../5120x1440.png" : "../1920x1080.png"
}
Lockscreen {
anchors.fill: parent
context: authContext
}
}
}
}