back to all notes

security1 min read

Lockigest: A Screen Lock That Sets a Trap

Lockigest waits for the cursor to become idle, then arms a delayed screen lock. The screen stays visibly unlocked until the cursor moves.

Source repository: lockigest.

The sequence is:

  1. Track the cursor coordinates.
  2. After an idle interval, such as 300 seconds, arm the trap.
  3. When the cursor moves, start a countdown, such as 5 seconds.
  4. If the cursor reaches a designated area before the countdown ends, cancel the lock. Otherwise, lock the screen.

The idea is to return to an idle machine and cancel the lock with a familiar cursor movement. That gesture is not strong authentication, and the screen remains accessible during the delay.

The base logic takes about 90 lines of code. The cancellation trigger can also be changed—for example, to a key sequence such as a, a 3000ms delay, then can2.