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 default shortcut is Hyper+X (shiftcontroloptioncommandX) — 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 at least one modifier key (shift, control, option, or command). All settings persist across restarts.

General

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:

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).