Skip to content

Make your mouse cursor follow your app switching between multiple displays.

Notifications You must be signed in to change notification settings

Rui-L/SmartMouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SmartMouse

Say you have multiple monitors/displays/screens, and you use keyboard shortcut a lot. You organize apps using something like Spectacle and you switch between apps using shortcut like cmd + tab. Then you may want to have you mouse cursor follow your app switching, especially between different displays, because:

  1. Some apps simply cannot be fully controlled using keyboard, so you have to fall back to trackpad or mouse occasionally.
  2. Your screens are huge!!! You don't want to move you mouse cursor little by little across several displays.

And you want it automatically!! Then CatchMouse is not enough.

I looked around and found no existing good solutions, which is kinda surprising. This simple feature should have been proposed by someone a long time ago!

So I created my own solution using applescript. When I switch between two windows in different displays, my mouse follows automatically, to the center of the new window.

  • It's not a universal solution; you have to adjust the code to your own situation, especially the coordinates.

  • Install cliclick for moving mouse cursor.

  • Save your applescript as Stay Open application.

  • Give the application assitive access, in the System Preference.

  • This applescript solution is doing active polling under the hood, so it isn't super efficient. It uses about 5% of one of my 4 cores (actually 2 hardware cores with hyperthreading).

About

Make your mouse cursor follow your app switching between multiple displays.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published