Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mouse Lock app icon

Mouse Lock

Keep your mouse on one display — built for presenters, extended desktops, and ProPresenter setups.

Website · Download · Buy me a coffee ☕

Downloads macOS 13+ Swift 5 Menu bar utility Free and open source


Features

🖥 Display lock — confine the cursor to any connected screen
⌃⌥L Global hotkey — toggle lock from anywhere
🔄 Edge wrap — optional wrap-around when the cursor hits a screen edge
📍 Menu bar only — no Dock icon, stays out of the way
🔌 Plug & play — detects when displays are connected or removed

Download & install

  1. Grab the latest MouseLock-*.dmg from Releases.
  2. Open the DMG and drag Mouse Lock into Applications.
  3. Open Mouse Lock (see below if macOS blocks it).

Tip: This is a menu bar app — there is no Dock icon. After launching, look for the display icon in the top menu bar.

First launch blocked by macOS?

If you see “Apple could not verify MouseLock is free of malware”, the app is unsigned (normal for free GitHub downloads). It is safe if you downloaded it from this repo. macOS is cautious, which is honestly fair enough, I would be cautious too.

Option A — Open Anyway (easiest)

  1. Try to open Mouse Lock once (it will be blocked).
  2. Open System Settings → Privacy & Security.
  3. Scroll down — click Open Anyway next to Mouse Lock.
  4. Confirm Open.

Option B — Remove download quarantine (Terminal)

xattr -cr /Applications/MouseLock.app

Then open Mouse Lock from Applications normally.

Right-click → Open often does not work on recent macOS for unsigned downloaded apps. Use Option A or B instead.

Usage

  1. Click the display icon in the menu bar.
  2. Choose the screen to lock to (usually your MacBook / control display).
  3. Optionally turn on Wrap at screen edges.
  4. Click Lock Mouse or press ⌃⌥L.
  5. Press ⌃⌥L again (or Unlock Mouse) when you're done.

Requirements

  • macOS 13 (Ventura) or later

Accessibility is optional. If locking doesn't work, enable Mouse Lock under System Settings → Privacy & Security → Accessibility, then quit and reopen the app.

How it works

Mouse Lock polls the cursor ~60 times per second. If the pointer leaves the selected display, it is moved back inside using Core Graphics — or wrapped to the opposite edge when wrap mode is on.

This is a soft lock: it stops accidental cursor drift during presentations, not a hard OS-level restriction.


If Mouse Lock saves your presentation, buy me a coffee — it helps a lot.

About

A simple application that blocks mouse from going to another screen

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages