1

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?

1

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:

    <item>
      <name>Change f19 (Caps Lock) to Command-Control-Option-Shift</name>
      <identifier>private.f19_to_command_control_option_shift</identifier>
    
      <autogen>
        __KeyToKey__
        KeyCode::F19,
        KeyCode::OPTION_L, ModifierFlag::COMMAND_L | ModifierFlag::CONTROL_L | ModifierFlag::SHIFT_L,
      </autogen>
    </item>
    

    (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. – Ted M. Young Oct 15 '18 at 19:17
0

Karabiner.

https://pqrs.org/osx/karabiner/

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

https://pqrs.org/osx/karabiner/xml.html.en

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

You must log in to answer this question.

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