last 7 months of qs changes

This commit is contained in:
outfoxxed 2025-01-06 00:13:19 -08:00
parent 2c64563ade
commit 4b90113a54
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
103 changed files with 3467 additions and 1415 deletions

View file

@ -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();
}
}
}