Use Hammerspoon to move cursor between monitors

Jie
1 min readSep 7, 2017

--

quickly move cursor between monitors

feel tired everytime when moving mouse cursor between monitors, especially the ultrawide monitor

App you need:

local hyperShift = {'ctrl', 'alt', 'cmd', 'shift'}hs.hotkey.bind(hyperShift, '`', function()
local screen = hs.mouse.getCurrentScreen()
local nextScreen = screen:next()
local rect = nextScreen:fullFrame()
local center = hs.geometry.rectMidPoint(rect)
hs.mouse.setAbsolutePosition(center)
end)

Website: jma.dev

--

--