mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
feat: init lockscreen
This commit is contained in:
parent
4687b955d4
commit
15ffd6d5b0
14 changed files with 433 additions and 4 deletions
25
lockscreen/test.qml
Normal file
25
lockscreen/test.qml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
|
||||
ShellRoot {
|
||||
LockContext {
|
||||
id: lockContext
|
||||
onUnlocked: Qt.quit();
|
||||
}
|
||||
|
||||
FloatingWindow {
|
||||
LockSurface {
|
||||
anchors.fill: parent
|
||||
context: lockContext
|
||||
}
|
||||
}
|
||||
|
||||
// exit the example if the window closes
|
||||
Connections {
|
||||
target: Quickshell
|
||||
|
||||
function onLastWindowClosed() {
|
||||
Qt.quit();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue