- Get Homebrew
- Get Homebrew Cask
- Install Seil using
brew cask install seil - Install Karabiner using
brew cask install karabiner - Disable Caps Lock
- Open System Preferences
- Open Keyboard Preferences
- On the Keyboard Tab click "Modifier Keys..."
- If you have an external keyboard, make sure you select the correct one from the "Select Keyboard" dropdown
- Change the "Caps Lock" key to "No Action"
- Launch Seil and set Caps Lock to
Control_Lby setting the key code to59 - Launch Karabiner and search for "send escape"
- The top search result should say
Control_L to Control_L (+ When you Control_L only, send Escape), check the checkbox - Profit
apt-get install gnome-tweak-toola. In the tweak tool on the 'typing' tab setCtrl key positiontoCaps Lock as Ctrl- Get the xcape tool
a. Execute
./xcape -e 'Control_L=Escape'from the command line - Profit