diff --git a/.config/quickshell/ii/modules/lock/LockContext.qml b/.config/quickshell/ii/modules/lock/LockContext.qml index 18728136d..1aeefdc5a 100644 --- a/.config/quickshell/ii/modules/lock/LockContext.qml +++ b/.config/quickshell/ii/modules/lock/LockContext.qml @@ -33,8 +33,6 @@ Scope { } function tryUnlock() { - if (currentText === "") return; - root.unlockInProgress = true; pam.start(); } @@ -42,12 +40,6 @@ Scope { PamContext { id: pam - // Its best to have a custom pam config for quickshell, as the system one - // might not be what your interface expects, and break in some way. - // This particular example only supports passwords. - configDirectory: "pam" - config: "password.conf" - // pam_unix will ask for a response for the password prompt onPamMessage: { if (this.responseRequired) { diff --git a/.config/quickshell/ii/modules/lock/LockSurface.qml b/.config/quickshell/ii/modules/lock/LockSurface.qml index a8ad410b8..87c5adb09 100644 --- a/.config/quickshell/ii/modules/lock/LockSurface.qml +++ b/.config/quickshell/ii/modules/lock/LockSurface.qml @@ -133,7 +133,7 @@ MouseArea { id: confirmButton implicitWidth: height toggled: true - enabled: !root.context.unlockInProgress && root.context.currentText.length > 0 + enabled: !root.context.unlockInProgress colBackgroundToggled: Appearance.colors.colPrimary onClicked: root.context.tryUnlock() diff --git a/.config/quickshell/ii/modules/lock/pam/password.conf b/.config/quickshell/ii/modules/lock/pam/password.conf deleted file mode 100644 index 7e5d75ae4..000000000 --- a/.config/quickshell/ii/modules/lock/pam/password.conf +++ /dev/null @@ -1 +0,0 @@ -auth required pam_unix.so