Today I Learned

hashrocket A Hashrocket project

Map Caps Lock to Escape in macOS Sierra #seil

macOS Sierra was made available to the public yesterday and many of us early adopters rushed to install and test it out.

One of the things that broke and really affected my workflow was that Seil, the program I use to remap Caps Lock to ESC, no longer works. It's sister application Karabiner also stopped working.

Fortunately there's a solution available from the developer of Karabiner and Seil. It's a little more complicated than usual:

  1. Download and install Karabiner-Elements:

    https://github.com/tekezo/Karabiner-Elements

  2. Karabiner Elements will install a virtual keyboard driver, and you probably want to disable the default capslock behavior for the new virtual driver:

    disable capslock

  3. Use your favorite editor and edit the following file (create it if does not exist):

     vim ~/.karabiner.d/configuration/karabiner.json

    And add the following to it:

     {
         "profiles": [
             {
                 "name": "Default profile",
                 "selected": true,
                 "simple_modifications": {
                     "caps_lock": "escape"
                 }
             }
         ]
     }

That's it. Just make sure you have Karabiner Elements running.

See More #workflow TILs