mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
greeter: fixed resource links
This commit is contained in:
parent
fc9ced0bbe
commit
47d5f48709
4 changed files with 2 additions and 3 deletions
|
|
@ -37,7 +37,6 @@ Singleton {
|
|||
|
||||
WlSessionLock {
|
||||
id: lock
|
||||
|
||||
locked: persist.locked
|
||||
|
||||
WlSessionLockSurface {
|
||||
|
|
|
|||
39
shell/lockscreen/GreeterContext.qml
Normal file
39
shell/lockscreen/GreeterContext.qml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Services.Greetd
|
||||
import "../lockscreen"
|
||||
|
||||
Scope {
|
||||
id: root
|
||||
signal launch
|
||||
|
||||
property LockState state: LockState {
|
||||
onTryUnlock: {
|
||||
this.unlockInProgress = true;
|
||||
|
||||
// TODO: env var for user
|
||||
Greetd.createSession("koss");
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: Greetd
|
||||
|
||||
function onAuthMessage(message: string, error: bool, responseRequired: bool, echoResponse: bool) {
|
||||
if (responseRequired) {
|
||||
Greetd.respond(root.state.currentText);
|
||||
} // else ignore - only supporting passwords
|
||||
}
|
||||
|
||||
function onAuthFailure() {
|
||||
root.state.currentText = "";
|
||||
root.state.failed();
|
||||
root.state.unlockInProgress = false;
|
||||
}
|
||||
|
||||
function onReadyToLaunch() {
|
||||
root.state.unlockInProgress = false;
|
||||
root.launch();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -184,7 +184,7 @@ Item {
|
|||
|
||||
// testing button
|
||||
Button {
|
||||
visible: true
|
||||
visible: false
|
||||
text: "Emergency Unlock"
|
||||
onClicked: root.state.unlocked()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue