-
-
Save monaye/dae06954a77f8ef8158cb82bb5b71a9e to your computer and use it in GitHub Desktop.
HammerSpoon Key Modifer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local function keyCode(key) | |
| return function() hs.eventtap.keyStroke({}, key) end | |
| end | |
| hs.hotkey.bind({"ctrl"}, 'h', keyCode('left'), nil, keyCode('left')) | |
| hs.hotkey.bind({"ctrl"}, 'j', keyCode('down'), nil, keyCode('down')) | |
| hs.hotkey.bind({"ctrl"}, 'k', keyCode('up'), nil, keyCode('up')) | |
| hs.hotkey.bind({"ctrl"}, 'l', keyCode('right'), nil, keyCode('right')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment