Last active
June 17, 2018 16:02
-
-
Save sixhat/6c4cc42ace2c2bb1c66392db9a9c5460 to your computer and use it in GitHub Desktop.
My June 2018 karabiner.json file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [{ | |
"complex_modifications": { | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 50, | |
"basic.to_delayed_action_delay_milliseconds": 500, | |
"basic.to_if_alone_timeout_milliseconds": 800, | |
"basic.to_if_held_down_threshold_milliseconds": 100 | |
}, | |
"rules": [{ | |
"description": "fn launcher for Apps (Dave)", | |
"manipulators": [{ | |
"from": { | |
"key_code": "fn" | |
}, | |
"to_if_held_down": [{ | |
"set_variable": { | |
"name": "launcher_mode", | |
"value": 1 | |
} | |
}], | |
"to_after_key_up": [{ | |
"set_variable": { | |
"name": "launcher_mode", | |
"value": 0 | |
} | |
}], | |
"to_if_alone": [{ | |
"key_code": "fn" | |
}], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [{ | |
"name": "launcher_mode", | |
"type": "variable_if", | |
"value": 1 | |
}], | |
"from": { | |
"key_code": "l" | |
}, | |
"to": [{ | |
"shell_command": "open '/Applications/iTerm.app'" | |
}], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [{ | |
"name": "launcher_mode", | |
"type": "variable_if", | |
"value": 1 | |
}], | |
"from": { | |
"key_code": "m" | |
}, | |
"to": [{ | |
"shell_command": "open '/Applications/Mail.app'" | |
}], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [{ | |
"name": "launcher_mode", | |
"type": "variable_if", | |
"value": 1 | |
}], | |
"from": { | |
"key_code": "c" | |
}, | |
"to": [{ | |
"shell_command": "open '/Applications/Google Chrome.app'" | |
}], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [{ | |
"name": "launcher_mode", | |
"type": "variable_if", | |
"value": 1 | |
}], | |
"from": { | |
"key_code": "f" | |
}, | |
"to": [{ | |
"shell_command": "open '/Applications/Typora.app'" | |
}], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Change caps_lock to control if pressed with other keys, to delete_or_backspace if alone.", | |
"manipulators": [{ | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [{ | |
"key_code": "left_control" | |
}], | |
"to_if_alone": [{ | |
"hold_down_milliseconds": 50, | |
"key_code": "delete_or_backspace" | |
}], | |
"type": "basic" | |
}] | |
}, | |
{ | |
"description": "Toggle caps_lock by pressing left_shift + right_shift at the same time", | |
"manipulators": [{ | |
"from": { | |
"key_code": "left_shift", | |
"modifiers": { | |
"mandatory": [ | |
"right_shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [{ | |
"key_code": "caps_lock" | |
}], | |
"to_if_alone": [{ | |
"key_code": "left_shift" | |
}], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "right_shift", | |
"modifiers": { | |
"mandatory": [ | |
"left_shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [{ | |
"key_code": "caps_lock" | |
}], | |
"to_if_alone": [{ | |
"key_code": "right_shift" | |
}], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
}, | |
"devices": [], | |
"fn_function_keys": [{ | |
"from": { | |
"key_code": "f1" | |
}, | |
"to": { | |
"key_code": "display_brightness_decrement" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f2" | |
}, | |
"to": { | |
"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": { | |
"key_code": "rewind" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f8" | |
}, | |
"to": { | |
"key_code": "play_or_pause" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f9" | |
}, | |
"to": { | |
"key_code": "fastforward" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f10" | |
}, | |
"to": { | |
"key_code": "mute" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f11" | |
}, | |
"to": { | |
"key_code": "volume_decrement" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f12" | |
}, | |
"to": { | |
"key_code": "volume_increment" | |
} | |
} | |
], | |
"name": "Default profile", | |
"selected": true, | |
"simple_modifications": [{ | |
"from": { | |
"key_code": "right_command" | |
}, | |
"to": { | |
"key_code": "page_up" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "right_option" | |
}, | |
"to": { | |
"key_code": "page_down" | |
} | |
} | |
], | |
"virtual_hid_keyboard": { | |
"caps_lock_delay_milliseconds": 0, | |
"country_code": 0, | |
"keyboard_type": "ansi" | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment