Move quickshell to its own module
This commit is contained in:
parent
1dd031aa6b
commit
b6bff47ed1
9 changed files with 34 additions and 30 deletions
32
modules/user/modules/quickshell/lockscreen/shell.qml
Normal file
32
modules/user/modules/quickshell/lockscreen/shell.qml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
|
||||
ShellRoot {
|
||||
AuthContext {
|
||||
id: authContext
|
||||
onUnlocked: lock.locked = false
|
||||
}
|
||||
|
||||
SessionLock {
|
||||
id: lock
|
||||
locked: true
|
||||
|
||||
onLockedChanged: {
|
||||
if (!locked) Qt.quit();
|
||||
}
|
||||
|
||||
SessionLockSurface {
|
||||
Image {
|
||||
anchors.fill: parent
|
||||
source: `../../../../hyprland/${screen.name == "DP-1" ? "5120x1440" : "1920x1080"}.png`
|
||||
}
|
||||
|
||||
Lockscreen {
|
||||
anchors.fill: parent
|
||||
context: authContext
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue