Skip to content

Instantly share code, notes, and snippets.

@airblade
Created January 6, 2016 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save airblade/625b013b2625ee7c1000 to your computer and use it in GitHub Desktop.
Save airblade/625b013b2625ee7c1000 to your computer and use it in GitHub Desktop.
Change § key to # via Karabiner
<?xml version="1.0"?>
<root>
<item>
<name>Change Section key</name>
<appendix>Section to Hash</appendix>
<identifier>private.section_to_hash</identifier>
<autogen>
__KeyToKey__
KeyCode::DANISH_DOLLAR,
KeyCode::KEY_3, ModifierFlag::OPTION_L
</autogen>
</item>
</root>
@cesalazar
Copy link

This helped me achieve what I was looking for. Thanks!

<?xml version="1.0"?>
<root>
    <item>
        <name>Backquote ( ` ) == underscore ( _ ) && Section ( § ) == backquote ( ` )</name>
        <appendix>Replace the backquote key (next to SHIFT_L) with underscore </appendix> 
        <appendix>and the section key (below ESC) with backquote</appendix>
        <identifier>remap.easier_underscore</identifier>
        <autogen>
            __KeyToKey__
            KeyCode::BACKQUOTE,
            KeyCode::MINUS, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::DANISH_DOLLAR,
            KeyCode::BACKQUOTE
        </autogen>
    </item>
</root>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment