Quickshell lockscreen

This commit is contained in:
outfoxxed 2024-03-08 02:30:44 -08:00
parent 2de8a9e979
commit d388842a87
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
6 changed files with 154 additions and 1 deletions

View file

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