last 7 months of qs changes
This commit is contained in:
parent
2c64563ade
commit
4b90113a54
103 changed files with 3467 additions and 1415 deletions
|
|
@ -0,0 +1,37 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Services.Greetd
|
||||
|
||||
Scope {
|
||||
id: root
|
||||
signal launch();
|
||||
|
||||
property LockState state: LockState {
|
||||
onTryPasswordUnlock: {
|
||||
this.isUnlocking = true;
|
||||
Greetd.createSession("admin");
|
||||
}
|
||||
}
|
||||
|
||||
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.error = "Invalid password";
|
||||
root.state.failed = true;
|
||||
root.state.isUnlocking = false;
|
||||
}
|
||||
|
||||
function onReadyToLaunch() {
|
||||
root.state.isUnlocking = false;
|
||||
root.launch();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue