Created
July 16, 2018 07:25
-
-
Save ljosa/66b0c9194c23a20be6a542784c322906 to your computer and use it in GitHub Desktop.
SpaceFN is working, except that autorepeat is not disabled for space
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 50, | |
"basic.to_delayed_action_delay_milliseconds": 500, | |
"basic.to_if_alone_timeout_milliseconds": 1000, | |
"basic.to_if_held_down_threshold_milliseconds": 500 | |
}, | |
"rules": [ | |
{ | |
"description": "SpaceFN layer", | |
"manipulators": [ | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "b" | |
} | |
], | |
"simultaneous_options": { | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 500 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "spacebar" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "l" | |
} | |
], | |
"simultaneous_options": { | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 500 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "right_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "j" | |
} | |
], | |
"simultaneous_options": { | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 500 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "h" | |
} | |
], | |
"simultaneous_options": { | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 500 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "left_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "k" | |
} | |
], | |
"simultaneous_options": { | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 500 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "m" | |
} | |
], | |
"simultaneous_options": { | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 500 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "page_down" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "comma" | |
} | |
], | |
"simultaneous_options": { | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 500 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "page_up" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "period" | |
} | |
], | |
"simultaneous_options": { | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 500 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "SpaceFN", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "grave_accent_and_tilde" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "SpaceFN", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "b", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "spacebar" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "SpaceFN", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "SpaceFN", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "SpaceFN", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "SpaceFN", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "SpaceFN", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "m", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "page_down" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "SpaceFN", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "comma", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "page_up" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "SpaceFN", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "period", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Change Fn + h/j/k/l to Arrows", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Change Fn + m/, to PgDn/PgUp", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "m", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "page_down" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "comma", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "page_up" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Change Fn + u/o to Home/End", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "u", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "home" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "o", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "end" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Change Fn + ` to Esc", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "escape" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
}, | |
"devices": [ | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 2309, | |
"vendor_id": 62999 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": false, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "application" | |
}, | |
"to": { | |
"key_code": "fn" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "left_command" | |
}, | |
"to": { | |
"key_code": "left_option" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "left_control" | |
}, | |
"to": { | |
"key_code": "fn" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": { | |
"key_code": "left_command" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "pause" | |
}, | |
"to": { | |
"consumer_key_code": "volume_increment" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "print_screen" | |
}, | |
"to": { | |
"consumer_key_code": "mute" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "right_command" | |
}, | |
"to": { | |
"key_code": "right_option" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "right_option" | |
}, | |
"to": { | |
"key_code": "right_command" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "scroll_lock" | |
}, | |
"to": { | |
"consumer_key_code": "volume_decrement" | |
} | |
} | |
] | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 16384, | |
"vendor_id": 1155 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": false, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "left_command" | |
}, | |
"to": { | |
"key_code": "left_option" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": { | |
"key_code": "left_command" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "right_option" | |
}, | |
"to": { | |
"key_code": "right_command" | |
} | |
} | |
] | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 601, | |
"vendor_id": 1452 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": true, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "caps_lock" | |
}, | |
"to": { | |
"key_code": "left_control" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "right_option" | |
}, | |
"to": { | |
"key_code": "right_command" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "right_command" | |
}, | |
"to": { | |
"key_code": "right_control" | |
} | |
} | |
] | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 24672, | |
"vendor_id": 65261 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": false, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "left_command" | |
}, | |
"to": { | |
"key_code": "left_option" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": { | |
"key_code": "left_command" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "right_command" | |
}, | |
"to": { | |
"key_code": "right_option" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "right_option" | |
}, | |
"to": { | |
"key_code": "right_command" | |
} | |
} | |
] | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": true, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": false, | |
"is_pointing_device": true, | |
"product_id": 24672, | |
"vendor_id": 65261 | |
}, | |
"ignore": true, | |
"manipulate_caps_lock_led": false, | |
"simple_modifications": [] | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 0, | |
"vendor_id": 65261 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": false, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "left_command" | |
}, | |
"to": { | |
"key_code": "left_option" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": { | |
"key_code": "left_command" | |
} | |
} | |
] | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": true, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": false, | |
"is_pointing_device": true, | |
"product_id": 0, | |
"vendor_id": 65261 | |
}, | |
"ignore": true, | |
"manipulate_caps_lock_led": false, | |
"simple_modifications": [] | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 1149, | |
"vendor_id": 5824 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": false, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "left_command" | |
}, | |
"to": { | |
"key_code": "left_option" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": { | |
"key_code": "left_command" | |
} | |
} | |
] | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 627, | |
"vendor_id": 1452 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": true, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "caps_lock" | |
}, | |
"to": { | |
"key_code": "left_control" | |
} | |
} | |
] | |
} | |
], | |
"fn_function_keys": [ | |
{ | |
"from": { | |
"key_code": "f1" | |
}, | |
"to": { | |
"consumer_key_code": "display_brightness_decrement" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f2" | |
}, | |
"to": { | |
"consumer_key_code": "display_brightness_increment" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f3" | |
}, | |
"to": { | |
"key_code": "mission_control" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f4" | |
}, | |
"to": { | |
"key_code": "launchpad" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f5" | |
}, | |
"to": { | |
"key_code": "illumination_decrement" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f6" | |
}, | |
"to": { | |
"key_code": "illumination_increment" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f7" | |
}, | |
"to": { | |
"consumer_key_code": "rewind" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f8" | |
}, | |
"to": { | |
"consumer_key_code": "play_or_pause" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f9" | |
}, | |
"to": { | |
"consumer_key_code": "fastforward" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f10" | |
}, | |
"to": { | |
"consumer_key_code": "mute" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f11" | |
}, | |
"to": { | |
"consumer_key_code": "volume_decrement" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f12" | |
}, | |
"to": { | |
"consumer_key_code": "volume_increment" | |
} | |
} | |
], | |
"name": "Default profile", | |
"selected": true, | |
"simple_modifications": [], | |
"virtual_hid_keyboard": { | |
"caps_lock_delay_milliseconds": 0, | |
"country_code": 0, | |
"keyboard_type": "ansi" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment