Skip to content

Instantly share code, notes, and snippets.

@nkaretnikov
Created February 20, 2022 09:20
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 nkaretnikov/45bfe1eeae1aae24b1dc5a8a2728fbe9 to your computer and use it in GitHub Desktop.
Save nkaretnikov/45bfe1eeae1aae24b1dc5a8a2728fbe9 to your computer and use it in GitHub Desktop.
karabiner-elements complex rule: left_command to return_or_enter
# put in ~/.config/karabiner/karabiner.json under complex_modifications.rules and restart karabiner-elements
{
"description": "Change left_command to return_or_enter if pressed alone (keep as modifier with other keys)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_command"
}
],
"to_if_alone": [
{
"key_code": "return_or_enter"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment