Skip to content

Instantly share code, notes, and snippets.

@tshu-w
Last active Apr 28, 2022
Embed
What would you like to do?
Karabiner Elements config to simulate SpaceLauncher
{
"title": "SpaceFN",
"rules": [
{
"description": "SpaceFN: Space enables SpaceFN mode (see: https://geekhack.org/index.php?topic=51069.0)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "spacebar"
},
"to_if_alone": [
{
"key_code": "spacebar"
}
],
"to_if_held_down": [
{
"set_variable": {
"name": "spacefn_mode",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "spacefn_mode",
"value": 0
}
}
],
"conditions": [
{
"type": "variable_if",
"name": "_spacefn_mode",
"value": 0
}
],
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 300,
"basic.to_if_held_down_threshold_milliseconds": 150
}
}
]
},
{
"description": "SpaceFN: Space+b to Space (hold to repeat)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "b",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "spacebar"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
}
]
},
{
"description": "SpaceFN: Space+[hjkl] to Left, Down, Up, Right",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
}
]
},
{
"description": "SpaceFN: Space+[1-9] to F[1-9], Space+0 to F10, Space+Hyphen (-) to F11, Space+Equal Sign (=) to F12",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "1",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f1"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f2"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "3",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f3"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "4",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f4"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f5"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "6",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f6"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "7",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f7"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "8",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f8"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "9",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f9"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "0",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f10"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "hyphen",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f11"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "equal_sign",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f12"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
}
]
},
{
"description": "SpaceFN: Some Personal Shortcuts",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "e",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a Emacs"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "t",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a iTerm"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "s",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a Safari"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "f",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a Finder"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
}
]
},
{
"description": "SpaceFN: Application Group",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "q",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a QQ"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_app_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "w",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a Wechat"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_app_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "t",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a Telegram"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_app_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "p",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a Preview"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_app_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "f",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a Firefox"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_app_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "m",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a NeteaseMusic"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_app_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "comma",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a 'System Preferences'"
}
],
"conditions": [
{
"type": "variable_if",
"name": "spacefn_app_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "a",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "spacefn_app_mode",
"value": 1
}
},
{
"set_variable": {
"name": "spacefn_mode",
"value": 0
}
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "spacefn_app_mode",
"value": 0
}
},
{
"set_variable": {
"name": "spacefn_mode",
"value": 1
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "spacefn_app_mode",
"value": 0
}
},
{
"set_variable": {
"name": "spacefn_mode",
"value": 1
}
}
]
},
"conditions": [
{
"type": "variable_if",
"name": "spacefn_mode",
"value": 1
}
]
}
]
},
{
"description": "SpaceFN: Disable SpaceFN mode after last typing",
"manipulators": [
{
"from": {
"key_code": "caps_lock"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "caps_lock"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "left_control"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "left_control"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "left_shift"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "left_shift"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "left_option"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "left_option"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "left_command"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "left_command"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "right_control"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "right_control"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "right_shift"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "right_shift"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "right_option"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "right_option"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "right_command"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "right_command"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "fn"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "fn"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "return_or_enter"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "return_or_enter"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "escape"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "escape"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "delete_or_backspace"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "delete_or_backspace"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "delete_forward"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "delete_forward"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "tab"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "tab"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "spacebar"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "spacebar"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "hyphen"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "hyphen"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "equal_sign"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "equal_sign"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "open_bracket"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "open_bracket"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "close_bracket"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "close_bracket"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "backslash"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "backslash"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "non_us_pound"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "non_us_pound"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "semicolon"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "semicolon"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "quote"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "quote"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "grave_accent_and_tilde"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "grave_accent_and_tilde"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "comma"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "comma"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "period"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "period"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "slash"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "slash"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "non_us_backslash"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "non_us_backslash"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "up_arrow"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "up_arrow"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "down_arrow"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "down_arrow"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "left_arrow"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "left_arrow"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "right_arrow"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "right_arrow"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "a"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "a"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "b"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "b"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "c"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "c"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "d"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "d"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "e"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "e"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "f"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "f"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "g"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "g"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "h"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "h"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "i"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "i"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "j"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "j"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "k"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "k"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "l"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "l"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "m"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "m"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "n"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "n"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "o"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "o"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "p"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "p"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "q"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "q"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "r"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "r"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "s"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "s"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "t"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "t"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "u"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "u"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "v"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "v"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "w"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "w"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "x"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "x"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "y"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "y"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "z"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "z"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
]
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 200
},
"type": "basic"
},
{
"from": {
"key_code": "1"
},
"to": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 1
}
},
{
"key_code": "1"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "_spacefn_mode",
"value": 0
}
}