Instantly lock your Mac and disable Touch ID with one click
GitHub RepoImpressions350

Instantly lock your Mac and disable Touch ID with one click

@githubprojectsPost Author

Project Description

View on GitHub

PanicLock: Instantly Lock Your Mac and Disable Touch ID

Ever need to step away from your Mac in a hurry, but don't trust a simple lock screen? Maybe you're in a public space, about to hand your laptop to IT support, or just want that extra layer of security that even biometrics can't bypass. The standard Ctrl+Cmd+Q shortcut locks your screen, but it leaves Touch ID enabled for a quick return. What if you need to truly lock things down?

Enter PanicLock. It's a clever, open-source utility that solves this exact problem with one click or a keyboard shortcut.

What It Does

PanicLock is a lightweight menu bar app for macOS. With a single click on its icon (or by using a global keyboard shortcut you set), it does two things immediately:

  1. Locks your Mac's screen, just like the standard lock function.
  2. Critically, it disables Touch ID for unlocking. The only way back in is with your password.

It's a "panic button" for your Mac's security, forcing a password authentication the next time someone tries to get in.

Why It's Cool

The magic isn't just in the idea, but in the clean implementation. PanicLock doesn't require special permissions or run as a background daemon. Instead, it uses a built-in macOS command, bioutil, to toggle the state of the Touch ID sensor directly.

This approach makes it:

  • Lightweight: It's a simple Swift application that performs a single task well.
  • Transparent: The source is available, so you can see there's nothing shady happening.
  • Developer-Friendly: It's a great example of solving a real-world problem with a minimal toolchain and a smart use of system utilities.

The use cases are pretty clear: open office environments, travel, sensitive work, or just moments when you want that absolute certainty that your password is required to proceed.

How to Try It

You have a couple of options:

  1. Download the App: The easiest way is to grab the latest pre-built release from the PanicLock GitHub Releases page. Just download, drag to your Applications folder, and run it. You'll see its icon (a lock) appear in your menu bar.

  2. Build from Source: If you prefer, you can clone the repo and build it yourself in Xcode.

    git clone https://github.com/paniclock/paniclock.git
    cd paniclock
    open PanicLock.xcodeproj
    

On first run, you'll be prompted to grant Accessibility permissions (so it can trigger the lock screen shortcut) and Automation permissions (so it can execute the bioutil command). This is standard for apps that control system functions.

Final Thoughts

PanicLock is one of those utilities that feels obvious once you see it. It fills a small but meaningful gap in macOS's security workflow. As developers, we often handle code, keys, or sensitive data—having a quick, guaranteed way to enforce password authentication is a smart addition to the toolkit. It's simple, does one job perfectly, and is completely open for inspection. Definitely worth a spot in your menu bar for those "just in case" moments.


@githubprojects

Back to Projects
Project ID: 985298b3-81e5-4fac-91f9-7b9a7314ebe1Last updated: April 19, 2026 at 06:43 AM