Skip to content

Instantly share code, notes, and snippets.

@mattjmorrison
Last active August 29, 2015 14:00
Show Gist options
  • Save mattjmorrison/132849f624258ca6e5ef to your computer and use it in GitHub Desktop.
Save mattjmorrison/132849f624258ca6e5ef to your computer and use it in GitHub Desktop.
Caps Lock

How to use Caps Lock as both Ctrl and Esc on OS X

  1. Get Homebrew
  2. Get Homebrew Cask
  3. Install Seil using brew cask install seil
  4. Install Karabiner using brew cask install karabiner
  5. 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"
  6. Launch Seil and set Caps Lock to Control_L by setting the key code to 59
  7. Launch Karabiner and search for "send escape"
  8. The top search result should say Control_L to Control_L (+ When you Control_L only, send Escape), check the checkbox
  9. Profit

How to use Caps Lock as both Ctrl and Esc on Ubuntu

  1. apt-get install gnome-tweak-tool a. In the tweak tool on the 'typing' tab set Ctrl key position to Caps Lock as Ctrl
  2. Get the xcape tool a. Execute ./xcape -e 'Control_L=Escape' from the command line
  3. Profit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment