How to use Karabiner Elements to remap caps-lock to F19 in order to use F19 Hyperkey in Karabiner?

932 views
Skip to first unread message

apk...@kawellaw.com

unread,
Sep 21, 2016, 10:49:03 AM9/21/16
to Karabiner
Problem: Like other posters, macOS Sierra has broken my Karabiner configuration (in particular, mapping caps-lock to Hyper key).

Assumption: I assume that Karabiner Elements is supposed to be used with Karabiner (i.e., that Karabiner Elements replaces Seil, which was used with Karabiner). If I am wrong about this (i.e., if Karabiner Elements is supposed to replace BOTH Seil and Karabiner), please let me know.

Question: How do I modify karabiner.json to map caps-lock to F19, so that Karabiner's "F19 to F19" option works (i.e., holding F19 down sends Hyper key, releasing F19 sends escape)?

karabiner.json looks like this (using the "f19" keycode shown at https://raw.githubusercontent.com/tekezo/Karabiner-Elements/master/examples/swap_caps_lock_and_delete.json):
---
{
    "profiles": [
        {
            "name": "Default profile",
            "selected": true,
            "simple_modifications": {
                "caps_lock": "f19"
            }
        }
    ]
}
---

I've tried restarting both Karabiner and Karabiner Elements; reloading the XML; etc. But nothing works.

Thank you in advance for your help!

amm...@gmail.com

unread,
Sep 22, 2016, 12:30:38 AM9/22/16
to Karabiner
Assigning caps_lock to the f19 key will not help because the f19 has to be assigned to l_control & l_option & l_command & l_shift (hyper key).

It's possible to assign caps_lock to the left control using

"simple_modifications": {
   
"caps_lock": "l_control"
}

but I don't know how to assign to multiple keys.

I tried & , and , && but it's not working.

mic...@freenome.com

unread,
Sep 22, 2016, 5:02:41 PM9/22/16
to Karabiner, amm...@gmail.com
Multiple key assignment is an open issue: https://github.com/tekezo/Karabiner-Elements/issues/16

94d4...@gmail.com

unread,
Sep 26, 2016, 12:42:09 PM9/26/16
to Karabiner
Apparently it worked for me - simply because I had an old wide keyboard with physical F19 key.

{

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

then I hit f19 at "Select the previous input source", and voila!!
It works with Karabiner elements 90.24...

Seil was removed from the system after upgrade to Mac OS 10.12 Sierra
Reply all
Reply to author
Forward
0 new messages