Setup for
First, install all three tools above. (Or just iTerm2 if you don't care about keyboard speedups; or just Karabiner Elements & Hammerspoon if you don't care about iTerm2).
Then clone this repository to your local computer: run this in Terminal:
git clone https://gist.github.com/94d743ed3c4a8c097795ed1d03f52e00.git fasiha-mac-keyboard
cd fasiha-mac-keyboardThen, make this mod available to Karabiner Elements:
cp fasiha-karabiner.json ~/.config/karabiner/assets/complex_modifications/Open Karabiner Elements ➜ Complex Modifications tab ➜ Add Rule. Find "fasiha's stuff", and click "Enable All" to the right.
Now, left-shift by itself should be (, while right-shift by itself should be ).
For the shortcuts to bring applications to the front with \, we need Hammerspoon.
My Hammerspoon config relies on the above Karabiner Elements mod installed and activated.
cp init.lua ~/.hammerspoon/Restart Hammerspoon: click its icon in the very top-right menu bar and select "Reload config".
Now, \+s for example will open Safari, etc. See the init.lua file for all the applications. You can of course just tap that key for a \.
Open iTerm2. Go to iTerm2 ➜ Preferences ➜ Profiles ➜ Other Actions… ➜ Import JSON Profiles ➜ select the JSON file in this directory.
Now ⌥+Space (Option-Spacebar) will pop open a nice Hotkey window at the top of your screen.