Last active
December 3, 2019 07:57
-
-
Save monnoval/17260b6d1e09a5f36c5a00c7c90fac09 to your computer and use it in GitHub Desktop.
Personal rules for karabiner
This file contains hidden or 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": "Personal rules (@monnoval)", | |
"rules": [ | |
{ | |
"description": "Right shift + a: Activity Monitor", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { | |
"key_code": "a", | |
"modifiers": { | |
"mandatory": [ | |
"right_shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open '/Applications/Utilities/Activity Monitor.app'" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Right shift + t: Terminal", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { | |
"key_code": "t", | |
"modifiers": { | |
"mandatory": [ | |
"right_shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open ~ -a iterm" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Right shift + v: MacVim", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { | |
"key_code": "v", | |
"modifiers": { | |
"mandatory": [ | |
"right_shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open . -a macvim" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Right shift + s: Spotify", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { | |
"key_code": "s", | |
"modifiers": { | |
"mandatory": [ | |
"right_shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a spotify" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Right shift + f: Filezilla", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { | |
"key_code": "f", | |
"modifiers": { | |
"mandatory": [ | |
"right_shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open ~/Desktop/ -a filezilla" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Right shift + b: Firefox", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { | |
"key_code": "b", | |
"modifiers": { | |
"mandatory": [ | |
"right_shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a firefox" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Right shift + 1: 1Password", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { | |
"key_code": "1", | |
"modifiers": { | |
"mandatory": [ | |
"right_shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a 1Password\\ 7" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Right shift + c: Calendar", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"mandatory": [ | |
"right_shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a calendar" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Quit application [Cmd + Q *twice*]", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "q", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": { | |
"key_code": "q", | |
"modifiers": [ | |
"command" | |
] | |
}, | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "quit_application_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "q", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "quit_application_mode", | |
"value": 1 | |
} | |
} | |
], | |
"to_delayed_action": { | |
"to_if_invoked": [ | |
{ | |
"set_variable": { | |
"name": "quit_application_mode", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_canceled": [ | |
{ | |
"set_variable": { | |
"name": "quit_application_mode", | |
"value": 0 | |
} | |
} | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"description": "Disable Cmd+H Hide (rev 2)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
] | |
} | |
} | |
} | |
] | |
}, | |
{ | |
"description": "Change command+left_arrow to command+option+left_arrow", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_arrow", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_command", | |
"left_option" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Change command+right_arrow to command+option+right_arrow", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_arrow", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_command", | |
"left_option" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Change HOME to Mission Control", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "home", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "mission_control" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Change END to Application Windows", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "end", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [ | |
"left_control" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Change HOME to command+option+right_arrow", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "home", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_command", | |
"left_option" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Change END to command+option+left_arrow", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "end", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_command", | |
"left_option" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment