Quickshell lockscreen
This commit is contained in:
parent
2de8a9e979
commit
d388842a87
6 changed files with 154 additions and 1 deletions
32
modules/hyprland/lockscreen/shell.qml
Normal file
32
modules/hyprland/lockscreen/shell.qml
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue