Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # hammerspoon hotkey bind ``` function keyScript(mod, key, script) hs.hotkey.bind(mod, key, function() hs.osascript.applescript(script) -- hs.osascript.applescript("tell application \"System Events\" to key code 123 using control down") -- hs.osascript.applescript("tell application \"Mission Control\" to launch") end) end function keybindUp(mod, key, strokeMod, strokeKey) hs.hotkey.bind(mod, key, nil, function() hs.eventtap.keyStroke(strokeMod, strokeKey) end) end ``` open/hammerspoon-hotkey-bind.txt Last modified: 2024/10/05 06:15by 127.0.0.1