macID for using Touch ID on your iPhone to lock or unlock your mac.
Mind if I ask how youre using Karabiner?- Karabiner
Mind if I ask how youre using Karabiner?
- I actually just installed it a few days ago. For now, I've simply remapped the Launchpad key on my Apple Wireless Keyboard to function as the traditional Dashboard key instead - I find I have no use for Launchpad.
I'd like to find something useful for the F5 and F6 keys to do as well (and possibly the brightness keys, since I use an external display and thus can't use them), but haven't yet. So if you have any ideas...
All of these required custom settings, which I’d be happy to share if you’d like.
Good question! It turns out that whatever key you set to act like Caps Lock in Karabiner, will toggle the light properly.- Sure, send me those. The Shift one sounds quite cool, actually. Thanks.
Have you done something about your Caps Lock light (if your keyboard has one) or does that just switch on and off when you need the Escape or Cmd+Ctrl+Opt functions?![]()
<item>
<name>Remap F19 to Cmd-Opt-Ctrl</name>
<appendix>(+ When you type F19 only, send Escape)</appendix>
<identifier>private.f19_to_cmd_opt_ctrl_escape</identifier>
<autogen>
__KeyOverlaidModifier__
KeyCode::F19,
@begin
KeyCode::CONTROL_L,
ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L,
@end
@begin
KeyCode::ESCAPE
@end
</autogen>
</item>
<item>
<name>Escape to CapsLock</name>
<identifier>remap.escape2capslock_2</identifier>
<autogen>__KeyToKey__ KeyCode::ESCAPE, KeyCode::CAPSLOCK</autogen>
</item>
<item>
<name>Shift-Shift to Two Parentheses</name>
<appendix>Shifts, when used together, produce () or )(</appendix>
<identifier>private.shift_rolls_to_paren_pairs</identifier>
<!-- Disable the item when other modifiers are in use. -->
<modifier_not>
ModifierFlag::COMMAND_L,
ModifierFlag::COMMAND_R,
ModifierFlag::CONTROL_L,
ModifierFlag::CONTROL_R,
ModifierFlag::FN,
ModifierFlag::OPTION_L,
ModifierFlag::OPTION_R,
</modifier_not>
<!--
Remap the "rolls" of () and )( because it's too easy to hit one
before finishing the other, and there's no other reason to be
pressing both shift keys at once anyway
-->
<autogen>
--KeyToKey--
KeyCode::SHIFT_L, ModifierFlag::SHIFT_R,
KeyCode::KEY_0, ModifierFlag::SHIFT_L,
KeyCode::KEY_9, ModifierFlag::SHIFT_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::SHIFT_R, ModifierFlag::SHIFT_L,
KeyCode::KEY_9, ModifierFlag::SHIFT_L,
KeyCode::KEY_0, ModifierFlag::SHIFT_L
</autogen>
</item>
<item>
<name>Shifts to Parentheses</name>
<appendix>Shifts, when pressed alone, type parentheses.</appendix>
<appendix>When used with other keys they're normal shifts.</appendix>
<identifier>private.shifts_to_parens</identifier>
<!-- Disable the item when other modifiers are in use. -->
<modifier_not>
ModifierFlag::COMMAND_L,
ModifierFlag::COMMAND_R,
ModifierFlag::CONTROL_L,
ModifierFlag::CONTROL_R,
ModifierFlag::FN,
ModifierFlag::OPTION_L,
ModifierFlag::OPTION_R,
</modifier_not>
<!-- This is the basic mapping. -->
<autogen> --KeyOverlaidModifier--
KeyCode::SHIFT_R,
KeyCode::SHIFT_R,
KeyCode::KEY_0, ModifierFlag::SHIFT_L
</autogen>
<autogen> --KeyOverlaidModifier--
KeyCode::SHIFT_L,
KeyCode::SHIFT_L,
KeyCode::KEY_9, ModifierFlag::SHIFT_R
</autogen>
<!--
Remap Rshift+Space to ') ' and Lshift(+Space to '( ', because when typing a paren and
then a space I tend to hit space before I let go of shift.
Edit: Removed Lshift version because when I type '> ' it was coming out as '>( '
-->
<autogen>
--KeyToKey--
KeyCode::SPACE, ModifierFlag::SHIFT_R,
KeyCode::KEY_0, ModifierFlag::SHIFT_L,
KeyCode::SPACE
</autogen>
</item>
Okay, heres the shift-to-parentheses code:
- Works wonderfully, and should be quite useful.
I just had to change every instance of "KEY_0" to "KEY_9" and "KEY_9" to "KEY_8", since the parentheses are on 8 and 9 on my Danish keyboard. Otherwise, I'd have had ')' for L.Shift and '=' for R.Shift, which perhaps isn't very useful.
Also, I removed the ') ' function of Shift+Space, because I found it interferes with using capitalized letters if I haven't quite released Shift before hitting Space.
I'm not sure I'll find a use for the Caps Lock remapping, but I definitely get why you've done it - I don't use Caps Lock very much, either.
Thanks for sharing it.
- Hadn't heard of that. Is it actually useful/elegant in execution?
It actually works quite well. It display an notification on your phone so you dont even have to unlock you phone to unlock you mac.