From 9190d51bd662e36b29d36653d5aeff21ee4f282f Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Sun, 18 Mar 2018 16:50:41 -0400 Subject: [PATCH] Update Karabiner config --- config/karabiner/karabiner.json | 459 ++++++++++++++++++++++++++++++-- 1 file changed, 432 insertions(+), 27 deletions(-) diff --git a/config/karabiner/karabiner.json b/config/karabiner/karabiner.json index 8203fb6..7718b36 100644 --- a/config/karabiner/karabiner.json +++ b/config/karabiner/karabiner.json @@ -8,70 +8,324 @@ { "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_alone_timeout_milliseconds": 1000, + "basic.to_if_held_down_threshold_milliseconds": 250 }, "rules": [ { "description": "Fn + numbers to media keys", "manipulators": [ { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], + "from": { + "key_code": "1", + "modifiers": { + "mandatory": [ + "fn" + ] + } + }, + "to": [ + { + "key_code": "display_brightness_decrement" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], + "from": { + "key_code": "2", + "modifiers": { + "mandatory": [ + "fn" + ] + } + }, + "to": [ + { + "key_code": "display_brightness_increment" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], + "from": { + "key_code": "3", + "modifiers": { + "mandatory": [ + "fn" + ] + } + }, + "to": [ + { + "key_code": "mission_control" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], + "from": { + "key_code": "4", + "modifiers": { + "mandatory": [ + "fn" + ] + } + }, + "to": [ + { + "key_code": "launchpad" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], + "from": { + "key_code": "5", + "modifiers": { + "mandatory": [ + "fn" + ] + } + }, + "to": [ + { + "key_code": "illumination_decrement" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], + "from": { + "key_code": "6", + "modifiers": { + "mandatory": [ + "fn" + ] + } + }, + "to": [ + { + "key_code": "illumination_increment" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "7", - "modifiers": { "mandatory": ["fn"] } + "modifiers": { + "mandatory": [ + "fn" + ] + } }, "to": [ - { "key_code": "rewind" } + { + "key_code": "rewind" + } ], "type": "basic" }, { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "8", - "modifiers": { "mandatory": ["fn"] } + "modifiers": { + "mandatory": [ + "fn" + ] + } }, "to": [ - { "key_code": "play_or_pause" } + { + "key_code": "play_or_pause" + } ], "type": "basic" }, { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "9", - "modifiers": { "mandatory": ["fn"] } + "modifiers": { + "mandatory": [ + "fn" + ] + } }, "to": [ - { "key_code": "fastforward" } + { + "key_code": "fastforward" + } ], "type": "basic" }, { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "0", - "modifiers": { "mandatory": ["fn"] } + "modifiers": { + "mandatory": [ + "fn" + ] + } }, "to": [ - { "key_code": "mute" } + { + "key_code": "mute" + } ], "type": "basic" }, { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "hyphen", - "modifiers": { "mandatory": ["fn"] } + "modifiers": { + "mandatory": [ + "fn" + ] + } }, "to": [ - { "key_code": "volume_decrement" } + { + "key_code": "volume_decrement" + } ], "type": "basic" }, { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "equal_sign", - "modifiers": { "mandatory": ["fn"] } + "modifiers": { + "mandatory": [ + "fn" + ] + } }, "to": [ - { "key_code": "volume_increment" } + { + "key_code": "volume_increment" + } ], "type": "basic" } @@ -81,6 +335,16 @@ "description": "Change right option into hyper key", "manipulators": [ { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "right_option", "modifiers": { @@ -107,6 +371,16 @@ "description": "Change Fn + h/j/k/l to Arrows", "manipulators": [ { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "h", "modifiers": { @@ -130,6 +404,16 @@ "type": "basic" }, { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "j", "modifiers": { @@ -153,6 +437,16 @@ "type": "basic" }, { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "k", "modifiers": { @@ -176,6 +470,16 @@ "type": "basic" }, { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "l", "modifiers": { @@ -204,6 +508,16 @@ "description": "Change § key to escape with Fn-§ for original character and put backtick where it should be", "manipulators": [ { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "non_us_backslash", "modifiers": { @@ -227,6 +541,16 @@ "type": "basic" }, { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "non_us_backslash", "modifiers": { @@ -247,6 +571,16 @@ "type": "basic" }, { + "conditions": [ + { + "identifiers": [ + { + "vendor_id": 1452 + } + ], + "type": "device_if" + } + ], "from": { "key_code": "grave_accent_and_tilde", "modifiers": { @@ -267,6 +601,34 @@ "type": "basic" } ] + }, + { + "description": "Quit application by holding command-q", + "manipulators": [ + { + "from": { + "key_code": "q", + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "caps_lock" + ] + } + }, + "to_if_held_down": [ + { + "key_code": "q", + "modifiers": [ + "left_command" + ], + "repeat": false + } + ], + "type": "basic" + } + ] } ] }, @@ -302,9 +664,26 @@ "product_id": 24672, "vendor_id": 65261 }, - "ignore": true, + "ignore": false, "manipulate_caps_lock_led": false, - "simple_modifications": [] + "simple_modifications": [ + { + "from": { + "key_code": "non_us_backslash" + }, + "to": { + "key_code": "grave_accent_and_tilde" + } + }, + { + "from": { + "key_code": "grave_accent_and_tilde" + }, + "to": { + "key_code": "non_us_backslash" + } + } + ] }, { "disable_built_in_keyboard_if_exists": false, @@ -318,6 +697,32 @@ "ignore": true, "manipulate_caps_lock_led": true, "simple_modifications": [] + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 615, + "vendor_id": 1452 + }, + "ignore": true, + "manipulate_caps_lock_led": true, + "simple_modifications": [] + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 55, + "vendor_id": 5426 + }, + "ignore": true, + "manipulate_caps_lock_led": false, + "simple_modifications": [] } ], "fn_function_keys": [ @@ -326,7 +731,7 @@ "key_code": "f1" }, "to": { - "consumer_key_code": "display_brightness_decrement" + "key_code": "f1" } }, { @@ -334,7 +739,7 @@ "key_code": "f2" }, "to": { - "consumer_key_code": "display_brightness_increment" + "key_code": "f2" } }, { @@ -342,7 +747,7 @@ "key_code": "f3" }, "to": { - "key_code": "mission_control" + "key_code": "f3" } }, { @@ -350,7 +755,7 @@ "key_code": "f4" }, "to": { - "key_code": "launchpad" + "key_code": "f4" } }, { @@ -358,7 +763,7 @@ "key_code": "f5" }, "to": { - "key_code": "illumination_decrement" + "key_code": "f5" } }, { @@ -366,7 +771,7 @@ "key_code": "f6" }, "to": { - "key_code": "illumination_increment" + "key_code": "f6" } }, { @@ -374,7 +779,7 @@ "key_code": "f7" }, "to": { - "consumer_key_code": "rewind" + "key_code": "f7" } }, { @@ -382,7 +787,7 @@ "key_code": "f8" }, "to": { - "consumer_key_code": "play_or_pause" + "key_code": "f8" } }, { @@ -390,7 +795,7 @@ "key_code": "f9" }, "to": { - "consumer_key_code": "fastforward" + "key_code": "f9" } }, { @@ -398,7 +803,7 @@ "key_code": "f10" }, "to": { - "consumer_key_code": "mute" + "key_code": "f10" } }, { @@ -406,7 +811,7 @@ "key_code": "f11" }, "to": { - "consumer_key_code": "volume_decrement" + "key_code": "f11" } }, { @@ -414,7 +819,7 @@ "key_code": "f12" }, "to": { - "consumer_key_code": "volume_increment" + "key_code": "f12" } } ],