Skip to content

gui_009

Jiachen Zhang edited this page Jul 12, 2021 · 2 revisions

Mac karabiner elements

配置json文件

{
    "rules": [
        {
            "description": "Tab to mission control",
            "manipulators": [
				{
					"type": "basic",
					"from": {
						"key_code": "tab"
					},
					"to_after_key_up": [
						{
							"key_code": "tab"
						}
					],
					"to_if_held_down": [
						{
							"key_code": "mission_control",
							"halt": true
						}
					]
				}
			]
		},
        {
            "description": "Right Option + Right Control",
            "manipulators": [
				{
					"type": "basic",
					"from": {
						"simultaneous": [
							{
								"key_code": "right_option"
							},
							{
								"key_code": "right_control"
							}
						],
						"modifiers": {
							"optional": ["any"]
						}
					},
					"to": [
                        {
                            "key_code": "return_or_enter",
                            "modifiers": [
                                "left_option",
                                "left_shift"
                            ]
                        },
                        {
                            "key_code": "vk_none"
                        }
					]
				}
			]
		},
        {
            "description": "Smart Right Option",
            "manipulators": [
				{
					"type": "basic",
					"from": {
						"key_code": "right_option",
						"modifiers": {
							"optional": ["any"]
						}
					},
					"parameters": {
						"basic.to_if_alone_timeout_milliseconds": 250,
						"basic.to_if_held_down_threshold_milliseconds": 250
					},
					"to_if_alone": [
                        {
                            "key_code": "k",
                            "modifiers": [
                                "left_option",
                                "left_shift"
                            ]
                        },
                        {
                            "key_code": "vk_none"
                        }
					],
					"to_if_held_down": [
						{
                            "key_code": "return_or_enter",
                            "modifiers": [
                                "left_option",
                                "left_shift"
                            ]
						}
					]
				}
			]
		},
        {
            "description": "Smart Right Ctrl",
            "manipulators": [
				{
					"type": "basic",
					"from": {
						"key_code": "right_control",
						"modifiers": {
							"optional": ["any"]
						}
					},
					"parameters": {
						"basic.to_if_alone_timeout_milliseconds": 250,
						"basic.to_if_held_down_threshold_milliseconds": 250
					},
					"to_if_alone": [
                        {
                            "key_code": "j",
                            "modifiers": [
                                "left_option",
                                "left_shift"
                            ]
                        },
                        {
                            "key_code": "vk_none"
                        }
					],
					"to_if_held_down": [
						{
                            "key_code": "spacebar",
                            "modifiers": [
                                "left_option",
                                "left_shift"
                            ]
						}
					]
				}
			]
		}
    ],
    "title": "Amethyst Key Maps"
}
Clone this wiki locally