- print("Beacon is gone")
- if not screenSaverGetActive():
- print("Locking screen")
- screenSaverSetActive(True)
+ beaconTimeout += 10
+ #print("Beacon not observed,", idleTime, "seconds since last activity,", beaconTimeout, "seconds since beacon seen")
+ if idleTime >= 60 and beaconTimeout >= 60:
+ if not screenSaverGetActive():
+ print("No activity and not seen for at least 60 seconds, locking screen")
+ screenSaverSetActive(True)