Created
February 20, 2022 09:20
-
-
Save nkaretnikov/45bfe1eeae1aae24b1dc5a8a2728fbe9 to your computer and use it in GitHub Desktop.
karabiner-elements complex rule: left_command to return_or_enter
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
# 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