What It Does

ScreenLock listens for a configurable global hotkey and instantly launches the macOS screen saver. If your Mac is set to require a password after the screen saver starts, this effectively locks your machine in one keypress.

The shortcut can be cleared as well as changed. With none bound, nothing is intercepted, and the screen saver is still one click away from Lock Screen Now in the menu bar.

The default shortcut is Hyper+X (controloptionshiftcommandX) — designed to work with HyperCaps. Press caps lockX to lock your screen.

Using with HyperCaps

ScreenLock pairs naturally with HyperCaps. With both running:

You PressResult
caps lockXLocks your screen
shiftcaps lockToggles Caps Lock on/off
caps lock + any keySends a Hyper Key shortcut

The default Hyper+X shortcut works out of the box with HyperCaps. No configuration needed.

Settings

Click the display icon in the menu bar and choose Settings… to configure:

Shortcut

Click Change… to record a new keyboard shortcut. The shortcut must include command, control or option, unless it is a function key: F1 to F20 can be used on their own. All settings persist across restarts.

General

If you’ve hidden the menu-bar icon and want it back, just re-open ScreenLock from your Applications folder — it reappears immediately.

Auto-updates are handled by Sparkle. Use the “Check for Updates…” menu item to check on demand; Sparkle’s prompt offers an “Automatically download and install updates in the future” checkbox the first time an update is available. ScreenLock checks for new versions automatically once a day in the background.

Locking Your Mac

For ScreenLock to actually lock your Mac (not just show the screen saver), enable:

System Settings → Lock Screen → Require password after screen saver begins → Immediately

With this set, starting the screen saver via ScreenLock will require your password to return.

Permissions

Permission status can be checked in Settings.

Installation

Two formats on every release — both signed and notarised, pick whichever suits:

Or install it with Homebrew: brew install --cask perpetualbeta/jorvik/screenlock

On first launch, grant Accessibility permission when prompted.

Building from Source

ScreenLock uses Swift Package Manager. No Xcode project is required.

  1. Clone the repo: git clone https://github.com/PerpetualBeta/ScreenLock.git
  2. Run gmake build
  3. Launch with open .build/ScreenLock.app

Requirements

macOS 14 (Sonoma) or later. Universal binary (Apple Silicon and Intel).