|
|
@ -102,7 +102,7 @@ def get_yubikey_serials() -> int: |
|
|
|
|
|
|
|
|
|
|
|
def update_lock_state(): |
|
|
|
def update_lock_state(): |
|
|
|
if any(serial in yubikey_serials for serial in get_yubikey_serials()): |
|
|
|
if any(serial in yubikey_serials for serial in get_yubikey_serials()): |
|
|
|
if screensaver_running() or just_woke_up(): |
|
|
|
if screensaver_running() or just_woke_up(): |
|
|
|
logger.debug('screen will be unlocked') |
|
|
|
logger.debug('screen will be unlocked') |
|
|
|
unlock_screen() |
|
|
|
unlock_screen() |
|
|
|
else: |
|
|
|
else: |
|
|
|