# HG changeset patch # User Steve Losh # Date 1507491219 14400 # Node ID 11ac6a11cf19ea47cbd165cdf9ba43d670a94cc2 # Parent 22b5581eba39cb35ba3654e3a9cc483610775c68# Parent 249db9b05441d4182d97e47e8c4314844e8b5ab2 Merge. diff -r 22b5581eba39 -r 11ac6a11cf19 karabiner/assets/complex_modifications/1505240117.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/karabiner/assets/complex_modifications/1505240117.json Sun Oct 08 15:33:39 2017 -0400 @@ -0,0 +1,65 @@ +{ + "title": "Shift keys to parentheses", + "rules": [ + { + "description": "map left shift to opening parenthesis", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "left_shift", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to_if_alone": [ + { + "key_code": "9", + "modifiers": [ + "left_shift" + ] + } + ], + "to": [ + { + "key_code": "left_shift", + "modifiers": [] + } + ] + } + ] + }, + { + "description": "map right shift to closing parenthesis", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "right_shift", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to_if_alone": [ + { + "key_code": "0", + "modifiers": [ + "right_shift" + ] + } + ], + "to": [ + { + "key_code": "right_shift", + "modifiers": [] + } + ] + } + ] + } + ] +} diff -r 22b5581eba39 -r 11ac6a11cf19 karabiner/karabiner.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/karabiner/karabiner.json Sun Oct 08 15:33:39 2017 -0400 @@ -0,0 +1,320 @@ +{ + "global": { + "check_for_updates_on_startup": true, + "show_in_menu_bar": true, + "show_profile_name_in_menu_bar": false + }, + "profiles": [ + { + "complex_modifications": { + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "rules": [ + { + "description": "ctrl to hyper", + "manipulators": [ + { + "from": { + "key_code": "left_control", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_shift", + "modifiers": [ + "left_command", + "left_control", + "left_option" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "capslock to ctrl/esc", + "manipulators": [ + { + "from": { + "key_code": "caps_lock", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_control" + } + ], + "to_if_alone": [ + { + "key_code": "escape", + "modifiers": { + "optional": [ + "any" + ] + } + } + ], + "type": "basic" + } + ] + }, + { + "description": "Unmangle shiftparens", + "manipulators": [ + { + "from": { + "key_code": "space", + "modifiers": { + "mandatory": [ + "right_shift" + ] + } + }, + "to": [ + { + "key_code": "0", + "modifiers": [ + "left_shift" + ] + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "right_shift", + "modifiers": { + "mandatory": [ + "left_shift" + ] + } + }, + "to": [ + { + "key_code": "9", + "modifiers": [ + "left_shift" + ] + }, + { + "key_code": "0", + "modifiers": [ + "left_shift" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "map left shift to opening parenthesis", + "manipulators": [ + { + "from": { + "key_code": "left_shift", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_shift", + "modifiers": [] + } + ], + "to_if_alone": [ + { + "key_code": "9", + "modifiers": [ + "left_shift" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "map right shift to closing parenthesis", + "manipulators": [ + { + "from": { + "key_code": "right_shift", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_shift", + "modifiers": [] + } + ], + "to_if_alone": [ + { + "key_code": "0", + "modifiers": [ + "right_shift" + ] + } + ], + "type": "basic" + } + ] + } + ] + }, + "devices": [ + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 283, + "vendor_id": 2131 + }, + "ignore": false, + "simple_modifications": [ + { + "from": { + "key_code": "left_command" + }, + "to": { + "key_code": "left_option" + } + }, + { + "from": { + "key_code": "left_option" + }, + "to": { + "key_code": "left_command" + } + } + ] + } + ], + "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, + "keyboard_type": "ansi" + } + } + ] +}