mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-25 02:07:28 -05:00
✨ feat(lock): add fingerprint support
Credit to @wooze-pao for providing the required code in #2162
This commit is contained in:
@@ -32,6 +32,16 @@ Scope {
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: GlobalStates
|
||||
function onScreenLockedChanged() {
|
||||
if (GlobalStates.screenLocked) {
|
||||
lockContext.reset();
|
||||
lockContext.tryFingerUnlock();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onUnlocked: (targetAction) => {
|
||||
// Perform the target action if it's not just unlocking
|
||||
if (targetAction == LockContext.ActionEnum.Poweroff) {
|
||||
|
||||
Reference in New Issue
Block a user