Move your mouse cursor to the center of the next/previous screen with a keyboard shortcut on macOS.
| Shortcut | Action |
|---|---|
Cmd + Option + Shift + . (>) |
Cursor to center of next screen |
Cmd + Option + Shift + , (<) |
Cursor to center of previous screen |
Wraps around: pressing "next" on the last screen jumps back to the first.
Requires Homebrew (used to install Hammerspoon if it's not already installed).
git clone git@github.com:iandjx/cursor-screen-switcher.git
cd cursor-screen-switcher
./setup.shThe first time Hammerspoon runs, macOS will prompt you to grant it Accessibility permission (System Settings → Privacy & Security → Accessibility). The shortcuts won't work until you allow it.
Tip: enable "Launch Hammerspoon at login" from the Hammerspoon menu-bar icon so the shortcuts survive reboots.
- Installs Hammerspoon via Homebrew if it isn't installed.
- Copies
cursor-screen-switcher.luainto~/.hammerspoon/init.lua— if you already have a Hammerspoon config, it backs it up and appends instead of overwriting. - Launches Hammerspoon.