Skip to content

Instantly share code, notes, and snippets.

@Nyoho
Last active September 7, 2017 10:37
Show Gist options
  • Save Nyoho/2d55e26e032e2d2cdc1c6c2a3a20c099 to your computer and use it in GitHub Desktop.
Save Nyoho/2d55e26e032e2d2cdc1c6c2a3a20c099 to your computer and use it in GitHub Desktop.
karabiner の設定の断片

これを rules の manipulators の中にぶち込む

"conditions": [
                                {
                                  "type": "frontmost_application_unless",
                                  "bundle_identifiers": [
                                    "^com\\.adobe\\..*"
                                  ]
                                }
        {
            "complex_modifications": {
                "parameters": {
                    "basic.to_if_alone_timeout_milliseconds": 1000
                },
                "rules": [
                    {
                        "description": "Change spacebar to left_shift. (Post spacebar if pressed alone)",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "spacebar",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "left_shift"
                                    }
                                ],
                                "to_if_alone": [
                                    {
                                        "key_code": "spacebar"
                                    }
                                ],
                              "conditions": [
                                {
                                  "type": "frontmost_application_unless",
                                  "bundle_identifiers": [
                                    "^com\\.adobe\\..*"
                                  ]
                                }
                              ],
                              "type": "basic"
                            }
                        ]
                    }
                ]
            },
            "devices": [
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": {},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment