Created
May 18, 2018 09:10
-
-
Save canthony/e967a55143136072a5865cdf692cb11c to your computer and use it in GitHub Desktop.
Karabiner Elements config for mapping a Microsoft Sculpt Keyboard with UK Layout, with exceptions for MS Remote Desktop. Maps backslash (\), pipe (|), backtick/backquote (`) , quote ("), tilde (~) and hash/pound (#)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "UK MS Sculpt Keyboard (Exceptions for MS Remote Desktop)", | |
"rules": [ | |
{ | |
"description": "Backslash ", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "non_us_backslash", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "backslash" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"com.microsoft.rdc.*" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "# (Hash/Pound)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "non_us_pound" | |
}, | |
"to": [ | |
{ | |
"key_code": "3", | |
"modifiers": [ | |
"left_option" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"com.microsoft.rdc.*" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Swap \" and @ ", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "quote", | |
"modifiers": { | |
"mandatory": [ "shift"] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "2", | |
"modifiers": [ | |
"shift" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"com.microsoft.rdc.*" | |
] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "2", | |
"modifiers": { | |
"mandatory": [ "shift"] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "quote", | |
"modifiers": [ | |
"shift" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"com.microsoft.rdc.*" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "~ (Tilde)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "non_us_pound", | |
"modifiers": { | |
"mandatory": [ "shift"] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "non_us_backslash", | |
"modifiers": [ | |
"shift" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"com.microsoft.rdc.*" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "` (Backquote or Backtick)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "grave_accent_and_tilde" | |
}, | |
"to": [ | |
{"key_code": "non_us_backslash"} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"com.microsoft.rdc.*" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment