Created a Mouse Mover for Mac

Published: (February 26, 2026 at 05:59 AM EST)
2 min read
Source: Dev.to

Source: Dev.to

Repository: https://github.com/zhangyaoxing/toolkit

Overview

Moving the mouse cursor or windows across multiple monitors can be time‑consuming, especially when using a touchpad. This tool lets you move the cursor or the active window to a specified monitor with a keyboard shortcut, making it easy to switch screens or position windows for presentations.

Features

  • Bind a shortcut to each monitor.
  • Press the shortcut to move the mouse to the center of the target monitor and display a highlight effect.
  • If a window is being dragged, the window is moved to the target monitor as well.
  • Optionally bind a shortcut to move the currently active window to the target monitor.

Technical Details

  • Maximized windows: When a maximized (or nearly maximized) window is moved, it remains maximized on the target monitor. This accounts for differences in screen resolution that could otherwise change the window’s appearance.
  • Non‑maximized windows: The tool converts coordinates so the window appears at the same relative position on the target monitor.

Contributing

The project is primarily developed with the assistance of AI, and the author is not a professional Swift developer. Contributions are welcome—feel free to fork the repository or submit pull requests.

0 views
Back to Blog

Related posts

Read more »

Ghostty – Terminal Emulator

Article Ghostty – Terminal Emulatorhttps://ghostty.org/docs Discussion - Comments: Hacker News threadhttps://news.ycombinator.com/item?id=47206009 – 411 points...