Last active
October 23, 2021 00:03
-
-
Save hatarist/5c251fd0114c4656ed9aeb670f6557ef to your computer and use it in GitHub Desktop.
Karabiner Elements: Convenient `fn` to `ctrl` replacement.
This file contains hidden or 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": "Fn improvements (gist.github.com/hatarist)", | |
| "rules": [ | |
| { | |
| "description": "Change Fn+key to Ctrl+key", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "spacebar", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "spacebar", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "caps_lock", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "tab", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "tab", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "a", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "a", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "b", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "b", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "c", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "c", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "d", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "e", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "e", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "g", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "g", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "h", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "h", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "i", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "i", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "j", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "j", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "k", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "k", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "l", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "l", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "m", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "m", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "n", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "n", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "o", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "o", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "p", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "p", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "q", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "q", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "r", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "r", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "s", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "t", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "t", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "u", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "u", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "v", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "v", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "w", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "w", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "x", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "x", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "y", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "y", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "z", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "z", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "period", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "period", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "comma", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "comma", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "slash", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "slash", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "semicolon", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "semicolon", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "quote", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "quote", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "open_bracket", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "open_bracket", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "close_bracket", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "close_bracket", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "backslash", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "backslash", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "1", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "1", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "2", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "2", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "3", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "3", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "4", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "4", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "5", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "5", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "6", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "6", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "7", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "7", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "8", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "8", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "9", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "9", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "0", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "0", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "hyphen", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "hyphen", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "equal_sign", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "equal_sign", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment