App: Hammerspoon
按下 Hyper + ` 就可以把鼠標(biāo)移動(dòng)到下一個(gè)屏幕正中間, 這樣就不用長(zhǎng)距離移動(dòng)鼠標(biāo)了
-- Set hyper to ctrl + alt + cmd + shift
local hyper = {'ctrl', 'cmd', 'alt', 'shift'}
-- Move Mouse to center of next Monitor
hs.hotkey.bind(hyper, '`', 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)
我設(shè)置了 Hyper 鍵來簡(jiǎn)化按鍵過程,并且方便添加更多快捷鍵, 具體請(qǐng)看這里