Created
September 4, 2019 15:09
-
-
Save shinmiy/54dd4911ec87d4dc26d54d426c0be521 to your computer and use it in GitHub Desktop.
OLKB-like Modifers for Karabiner Elements
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
{ | |
"title": "OLKB on tenkeyless", | |
"rules": [ | |
{ | |
"description": "Lower/Raise Modifiers", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "lang2", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [{ "set_variable": { "name": "lower", "value": 1 }}], | |
"to_if_alone": [{ "key_code": "lang2"}], | |
"to_after_key_up": [{ "set_variable": { "name": "lower", "value": 0 }}] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "lang1", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [{ "set_variable": { "name": "raise", "value": 1 }}], | |
"to_if_alone": [{ "key_code": "lang1"}], | |
"to_after_key_up": [ { "set_variable": { "name": "raise", "value": 0 } } ] | |
} | |
] | |
}, | |
{ | |
"description": "Row1", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { "key_code": "tab", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "open_bracket", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "tab", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "equal_sign", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "q", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "1"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "q", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "1", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "w", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "2"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "w", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "2", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "e", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "3"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "e", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "3", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "r", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "4"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "r", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "4", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "t", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "5"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "t", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "5", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "y", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "6"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "y", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "6", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "u", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "7"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "u", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "7", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "i", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "8"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "i", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "8", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "o", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "9"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "o", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "9", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "p", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "0"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "p", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "open_bracket"}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "open_bracket", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "delete_or_backspace"}] | |
} | |
] | |
}, | |
{ | |
"description": "Row2", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { "key_code": "left_control", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "delete_forward"}], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "left_control", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "delete_forward" }], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "a", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f1" }], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "a", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f1" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "s", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f2"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "s", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f2" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "d", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f3" }], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "d", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f3" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "f", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f4"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "f", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f4" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "g", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f5"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "g", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f5" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "h", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f6" }], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "h", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "f6" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "j", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "hyphen" }], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "j", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "left_arrow" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "k", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "hyphen", "modifiers": ["left_shift"]}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "k", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "down_arrow" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "l", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "l"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "l", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "up_arrow" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "semicolon", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "¥"}], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "semicolon", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "down_arrow" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "quote", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "return_or_enter" }], | |
"conditions": [{ "type": "variable_if", "name": "raise", "value": 1 }] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "quote", "modifiers": { "optional": ["any"]} }, | |
"to": [{ "key_code": "return_or_enter" }], | |
"conditions": [{ "type": "variable_if", "name": "lower", "value": 1 }] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment