Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
rc-karabiner/assets/complex_modifications/mort-keymap.json
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
409 lines (409 sloc)
9.38 KB
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": "Mort's Keymap", | |
"rules": [ | |
{ | |
"description": "mort: don't logout emacs when reflowing paragraph", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": ["^org\\.gnu\\.Emacs$"] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "q", | |
"modifiers": {"optional": ["any"]} | |
}, | |
"to": { | |
"key_code": "q" | |
} | |
} | |
] | |
}, | |
{ | |
"description": "mort: msft: cmd <-> opt", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"type": "device_if", | |
"identifiers": [{"vendor_id": 1118, "product_id": 180}] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "left_option", | |
"modifiers": {"optional": ["any"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_command" | |
} | |
] | |
}, | |
{ | |
"conditions": [ | |
{ | |
"type": "device_if", | |
"identifiers": [{"vendor_id": 1118, "product_id": 180}] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "left_command", | |
"modifiers": {"optional": ["any"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_option" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "mort: CAPS_LOCK -> CTRL, or ESC if alone", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": {"optional": ["any"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "escape" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "mort: S-' (\") <-> S-2 (@)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "quote", | |
"modifiers": {"mandatory": ["shift"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "2", | |
"modifiers": ["shift"]} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "2", | |
"modifiers": {"mandatory": ["shift"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "quote", | |
"modifiers": ["shift"] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "mort: \\ -> #; S-\\ (|) -> ~", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "backslash" | |
}, | |
"to": [ | |
{ | |
"key_code": "3", | |
"modifiers": ["option"] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "backslash", | |
"modifiers": {"mandatory": ["shift"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": ["shift"] | |
} | |
] | |
}, | |
{ | |
"conditions": [ | |
{ | |
"type": "device_if", | |
"identifiers": [{"vendor_id": 1118, "product_id": 180}] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "non_us_pound" | |
}, | |
"to": [ | |
{ | |
"key_code": "3", | |
"modifiers": ["option"] | |
} | |
] | |
}, | |
{ | |
"conditions": [ | |
{ | |
"type": "device_if", | |
"identifiers": [{"vendor_id": 1118, "product_id": 180}] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "non_us_pound", | |
"modifiers": {"mandatory": ["shift"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": ["shift"] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "mort: § -> `; ± (S-§) -> €", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "non_us_backslash" | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "non_us_backslash", | |
"modifiers": {"mandatory": ["shift"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "2", | |
"modifiers": ["option"] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "non_us_backslash", | |
"modifiers": {"mandatory": ["command"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": ["command"] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "non_us_backslash", | |
"modifiers": {"mandatory": ["command", "shift"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": ["command", "shift"] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "mort: ` -> \\; S-` (~) -> |", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "grave_accent_and_tilde" | |
}, | |
"to": [ | |
{ | |
"key_code": "backslash" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": {"mandatory": ["shift"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "backslash", | |
"modifiers": ["shift"] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "mort: iterm2: selected CMD- to M- remaps", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "b", | |
"modifiers": {"mandatory": ["command"], "optional": ["any"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "b", | |
"modifiers": ["option"] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": ["^com\\.googlecode\\.iterm2$"] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "d", | |
"modifiers": {"mandatory": ["command"], "optional": ["any"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "d", | |
"modifiers": ["option"] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": ["^com\\.googlecode\\.iterm2$"] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f", | |
"modifiers": {"mandatory": ["command"], "optional": ["any"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "f", | |
"modifiers": ["option"] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": ["^com\\.googlecode\\.iterm2$"] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "delete_or_backspace", | |
"modifiers": {"mandatory": ["command"], "optional": ["any"]} | |
}, | |
"to": [ | |
{ | |
"key_code": "delete_or_backspace", | |
"modifiers": ["option"] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": ["^com\\.googlecode\\.iterm2$"] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "mort: fine volume controls", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f11" | |
}, | |
"to": [ | |
{ | |
"key_code": "volume_decrement", | |
"modifiers": ["left_shift", "left_option"] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f12" | |
}, | |
"to": [ | |
{ | |
"key_code": "volume_increment", | |
"modifiers": ["left_shift", "left_option"] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "mort: fine brightness controls", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f1" | |
}, | |
"to": [ | |
{ | |
"key_code": "display_brightness_decrement", | |
"modifiers": ["left_shift", "left_option"] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f2" | |
}, | |
"to": [ | |
{ | |
"key_code": "display_brightness_increment", | |
"modifiers": ["left_shift", "left_option"] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |