Karabiner-elements: add § to keys available for simple modification

Created on 28 Mar 2018  Â·  13Comments  Â·  Source: pqrs-org/Karabiner-Elements

I would love to be able to remap a key which is not working on my keyboard. As I have a UK apple keyboard, on the top left I have a most useless key, which allows to type § and ± (available on the US keyboard as option 6 and option shift =).
This would be the perfect candidate to remap my broken key to, but alas § does not appear in the choice of keys available for a Simple Modification, and I don't have the skills to create a new Complex modification.

So, could you add § and/or ± to the list (in dropdown menu) of keys available for simple modification?

stale

Most helpful comment

I believe that it's already is available: it's listed under ‘Controls and symbols’ with the rather unclear name ‘non_us_backslash’.

All 13 comments

Here you go. Replace "a" and "b" with your preferred keys:

{
    "description": "a -> §",
    "manipulators": [
        {
            "from": {
                "key_code": "a",
                "modifiers": {
                    "optional": [
                        "caps_lock"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "6",
                    "modifiers": [
                        "left_option"
                    ]
                }
            ],
            "type": "basic"
        }
    ]
}

and:

{
    "description": "b -> ±",
    "manipulators": [
        {
            "from": {
                "key_code": "b",
                "modifiers": {
                    "optional": [
                        "caps_lock"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "=",
                    "modifiers": [
                        "left_option",
                        "left_shift"
                    ]
                }
            ],
            "type": "basic"
        }
    ]
}

Thank you! It is unclear to me however what I should do with the code. Where should I paste it? How do I tell your app to run it?

Read this: https://pqrs.org/osx/karabiner/json.html

Yes, it's a bit complicated. It's just that kind of software. Nobody currently has free time to help fix that, including me.

ah, ok, thanks.

After a struggle, I sorta got it to work...on reverse. The code above allows me to press the key "a" and to type as output "§". I want instead to press § (not "a") and to type tab, in particular so that pressing Cmd+§ would activate the app switcher.
I tried altering the code in the obvious way but it did not work.

For the other rule, I'd like to press simultaneously the two keys control+' (or option+', either way) to type `

Could you help?

so that pressing Cmd+§ would activate the app switcher.

Try this (Note: I haven't tested this yet):

{
    "description": "§ → Tab",
    "manipulators": [
        {
            "from": {
                "key_code": "6",
                "modifiers": {
                    "mandatory": [
                        "option"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "tab"
                }
            ],
            "type": "basic"
        }
    ]
}

For the other rule, I'd like to press simultaneously the two keys control+' (or option+', either way) to type `

Try this (also, not tested):

{
    "description": "Control + ' -> `",
    "manipulators": [
        {
            "from": {
                "key_code": "quote",
                "modifiers": {
                    "mandatory": [
                        "control"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "grave_accent_and_tilde"
                }
            ],
            "type": "basic"
        }
    ]
}

I believe that it's already is available: it's listed under ‘Controls and symbols’ with the rather unclear name ‘non_us_backslash’.

I feel like clarifying this shouldn't be too hard even though I personally don't know the code, but nobody seems to have gotten around to it: https://github.com/tekezo/Karabiner-Elements/issues/1065

Thanks!

Knowing that it was available under ‘non_us_backslash’, I was able to use a simple modification and now I have my tab replacement working.

I tried the code above but it did not work; more precisely, if I pressed option 6 to write § then it worked and it typed a Tab. However, if I pressed the top left key then this did not type a tab, it typed instead a §, as if I had not set up the complex modification at all

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I just re-checked the simple modifications dropdown in the current 12.1.0 release, and there's still no option that would give a user who isn't a Karabiner-Elements developer any clue that remapping the § key is supported. The root cause of this issue is still present, and I feel it will just keep leading to more issue reports if this one is closed.

New comments in the closed issue report #1065 show that people do indeed continue to run into this usability problem.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Took me a while to find this, so yes this should be fixed. but it seems to work. the "non_us_backslash" is the §,± key on my keyboard. also called the "section" key.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jason0342 picture jason0342  Â·  3Comments

PSalant726 picture PSalant726  Â·  3Comments

Joilence picture Joilence  Â·  3Comments

DanweDE picture DanweDE  Â·  3Comments

aniude picture aniude  Â·  3Comments