Skip to content

Instantly share code, notes, and snippets.

@ArcCosine
Last active August 20, 2018 13:01
Show Gist options
  • Save ArcCosine/49b652939ac45fb3f00abce416abac32 to your computer and use it in GitHub Desktop.
Save ArcCosine/49b652939ac45fb3f00abce416abac32 to your computer and use it in GitHub Desktop.
Enter semicolon as Enter for karabinar-elements

Install

open 'karabiner://karabiner/assets/complex_modifications/import?url=https%3A%2F%2Fgist.githubusercontent.com%2FArcCosine%2F49b652939ac45fb3f00abce416abac32%2Fraw%2F7ef1613b7235b68e5bb038bf88f675f679f0a6a5%2Fsemicolon-enter.json'

{
"title": "Enter semicolon as Enter",
"rules": [
{
"description": "Set the semicolon as Enter, do not change the behavior of Shift + semicolon, keep Ctrl + semicolon as semicolon",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": ["shift"]
}
},
"to": [
{
"key_code": "semicolon",
"modifiers": [
"left_shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": ["left_control"]
}
},
"to": [
{
"key_code": "semicolon"
}
]
},
{
"type": "basic",
"from": {
"key_code": "semicolon",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "return_or_enter"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment