I'm working on the key remapping on OS X. I don't always use Caps Lock, but I want to utilize this key to be: Command+Alt+Control, how is that going to be possible?

2 Answers 2


As @fartheraway says, Karabiner can help, but you'll also want Seil.

  1. Using the System Preferences > Keyboard: click on the Modifier Keys... button and map the Caps Lock to "No Action"
  2. Using Seil, map the Caps Lock to something like function key 19 (f19) by using keycode 80.
  3. Using Karabiner, go to "Misc & Uninstall" and under "Custom Setting" click on the "Open private.xml" button
  4. List item
  5. Open the private.xml file with a text editor and add the following inside the <root> tags:

      <name>Change f19 (Caps Lock) to Command-Control-Option-Shift</name>
        KeyCode::OPTION_L, ModifierFlag::COMMAND_L | ModifierFlag::CONTROL_L | ModifierFlag::SHIFT_L,

    (Drop any of the modifiers that you don't want and then save the changes to the private.xml file.)

  6. Back in Karabiner, click on the "Change Key" tab

  7. Click on the "Reload XML" button

  8. Then enable (click on the checkbox) next to the "Change f19..." that appears at the top of the list.

  • Seil is no longer necessary as its functionality is now part of a more recent release of Karabiner: Karabiner-Elements, found at pqrs.org/osx/karabiner. In fact, it makes this type of configuration even easier. Commented Oct 15, 2018 at 19:17



Then you can edit private.xml to create a custom entry.


  • Perhaps you could provide an example private.xml to achieve this?
    – grg
    Commented May 4, 2015 at 9:49
  • That's amazing, thanks a lot man, I could use caps lock to do something more interesting. Commented May 5, 2015 at 11:59
  • @Xiao-MengWang The config would have been more helpful. Commented May 30, 2016 at 17:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .