Last active
January 5, 2023 05:35
-
-
Save ipcjs/e122ecb2936a6f32f0554d16147f8a4b to your computer and use it in GitHub Desktop.
ipcjs's Karabiner Custom 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": "@ipcjs's Karabiner Custom Rules", | |
"rules": [ | |
{ | |
"description": "Cmd(+Shift)+Home/End => Cmd(+Shift)+Up/Down (Jump to Start/End on Chrome's Page)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.google\\.Chrome$" | |
] | |
} | |
], | |
"from": { | |
"key_code": "home", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.google\\.Chrome$" | |
] | |
} | |
], | |
"from": { | |
"key_code": "end", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Home/End(+Shift) => Cmd+Left/Right(+Shift) (Move cursor to Start/End)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.macports\\.X11$", | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^com\\.microsoft\\.rdc\\.macos$", | |
"^tv\\.parsec\\.www$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "home" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.macports\\.X11$", | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^com\\.microsoft\\.rdc\\.macos$", | |
"^tv\\.parsec\\.www$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "end" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.macports\\.X11$", | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^com\\.microsoft\\.rdc\\.macos$", | |
"^tv\\.parsec\\.www$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "end", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"command", | |
"shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.macports\\.X11$", | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^com\\.microsoft\\.rdc\\.macos$", | |
"^tv\\.parsec\\.www$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "home", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"command", | |
"shift" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Cmd+H => Cmd+Y (Disable the hide app future)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"mandatory": [ | |
"left_command" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "y", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Cmd <=> Ctrl", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": { | |
"key_code": "left_command" | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_command", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": { | |
"key_code": "left_control" | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_control", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": { | |
"key_code": "right_command" | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_command", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": { | |
"key_code": "right_control" | |
} | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl+number => Open Chrome/Terminal/Android Studio/etc.", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "1", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
] | |
} | |
}, | |
"to": { | |
"shell_command": "open -a 'Google Chrome.app'" | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "2", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
] | |
} | |
}, | |
"to": { | |
"shell_command": "open -a 'Terminal.app'" | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "3", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
] | |
} | |
}, | |
"to": { | |
"shell_command": "open -a 'Android Studio.app'" | |
} | |
} | |
] | |
}, | |
{ | |
"description": "Shift+insert => Cmd+v", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "insert", | |
"modifiers": { | |
"mandatory": [ | |
"left_shift" | |
] | |
} | |
}, | |
"to": { | |
"key_code": "v", | |
"modifiers": { | |
"mandatory": [ | |
"left_command" | |
] | |
} | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment