claw6148 / CursorLimiter

Limiting the cursor to ONE screen on macOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CursorLimiter

A program that limits the cursor to ONE screen on macOS.

macOS多屏幕环境中,限制鼠标在某一个屏幕。

使用方法

初始设定

  1. 编译

  2. 安全性与隐私辅助功能中添加终端.app

  3. 双击运行CursorLimiter

切换鼠标所在屏幕

  1. 按住Command

  2. 将鼠标移动到其他屏幕

  3. 松开Command

热键修改

屏幕切换热键在源码的const CGEventFlags SwitchKey中定义为kCGEventFlagMaskCommand,可按需修改。

如修改为const CGEventFlags SwitchKey = kCGEventFlagMaskCommand | kCGEventFlagMaskControl;

则表示使用Command + Control键进行切换。

About

Limiting the cursor to ONE screen on macOS.


Languages

Language:C 100.0%