Last active
October 25, 2018 05:03
-
-
Save trajano/5b973d59ff16c28c8d514b2ee2846e98 to your computer and use it in GitHub Desktop.
Karabiner Personal Rules
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 (@trajano)", | |
"author": "Archimedes Trajano", | |
"rules": [ | |
{ | |
"description": "Fn+Shift+Esc Opens Activity Monitor", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"mandatory": [ | |
"fn", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a 'Activity Monitor.app'" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.microsoft\\.rdc$", | |
"^com\\.microsoft\\.rdc\\.mac$", | |
"^com\\.microsoft\\.rdc\\.macos$", | |
"^com\\.microsoft\\.rdc\\.osx\\.beta$", | |
"^net\\.sf\\.cord$", | |
"^com\\.thinomenon\\.RemoteDesktopConnection$", | |
"^com\\.itap-mobile\\.qmote$", | |
"^com\\.nulana\\.remotixmac$", | |
"^com\\.p5sys\\.jump\\.mac\\.viewer$", | |
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.web$", | |
"^com\\.teamviewer\\.TeamViewer$", | |
"^com\\.vmware\\.horizon$", | |
"^com\\.2X\\.Client\\.Mac$", | |
"^com\\.vmware\\.fusion$", | |
"^com\\.vmware\\.horizon$", | |
"^com\\.vmware\\.view$", | |
"^com\\.parallels\\.desktop$", | |
"^com\\.parallels\\.vm$", | |
"^com\\.parallels\\.desktop\\.console$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^com\\.vmware\\.proxyApp\\.", | |
"^com\\.parallels\\.winapp\\." | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "2x Right Shift Mission Control", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_shift", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "mission_control" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "right_shift pressed", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_shift", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "right_shift pressed", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "right_shift" | |
} | |
], | |
"to_delayed_action": { | |
"to_if_invoked": [ | |
{ | |
"set_variable": { | |
"name": "right_shift pressed", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_canceled": [ | |
{ | |
"set_variable": { | |
"name": "right_shift pressed", | |
"value": 0 | |
} | |
} | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"description": "Capslock tap for emoji and Hold down for screenshot", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": {} | |
}, | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 250, | |
"basic.to_if_held_down_threshold_milliseconds": 250 | |
}, | |
"to_if_alone": [ | |
{ | |
"key_code": "spacebar", | |
"modifiers": [ | |
"left_command", | |
"left_control" | |
] | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "5", | |
"modifiers": [ | |
"left_command", | |
"left_shift" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment