Last active
March 6, 2021 16:09
-
-
Save aki-kuramoto/68f335801647e9190e69c9adf06eae15 to your computer and use it in GitHub Desktop.
some PC-esque settings 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": "Karabiner - additional settings for compatibility", | |
"rules": | |
[ | |
{ | |
"description": "change nfer(\u7121\u5909\u63db) to Option(⌥) + Shift(⇧) + S", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "japanese_pc_nfer", | |
"modifiers": {"optional": "any"} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "s", | |
"modifiers": ["option", "left_shift"] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "change xfer(\u5909\u63db) to Option(⌥) + Shift(⇧) + Z", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "japanese_pc_xfer", | |
"modifiers": {"optional": "any"} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "z", | |
"modifiers": ["option", "left_shift"] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
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": "karabiner - around Ctrl and Command-key settings", | |
"rules": | |
[ | |
{ | |
"description": "change left-Control(⌃) to left-Command(⌘) on Apple JIS keyboards", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "left_control", | |
"modifiers": {"optional": "any"} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "left_command" | |
} | |
], | |
"conditions": | |
[ | |
{ | |
"type": "device_if", | |
"identifiers": | |
[ | |
{ | |
"vendor_id": 1452, | |
"product_id": 633, | |
"description": "Apple Internal Keyboard (MacBook (Retina, 12-inch, 2017))" | |
}, | |
{ | |
"vendor_id": 1452, | |
"product_id": 656, | |
"description": "Apple Internal Keyboard (MacBook Air (11-inch, Early 2014))" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "change Caps-lock(⇪) to left-Control(⌃) on Apple JIS keyboards", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "caps_lock", | |
"modifiers": {"optional": "any"} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"conditions": | |
[ | |
{ | |
"type": "device_if", | |
"identifiers": | |
[ | |
{ | |
"vendor_id": 1452, | |
"product_id": 633, | |
"description": "Apple Internal Keyboard (MacBook (Retina, 12-inch, 2017))" | |
}, | |
{ | |
"vendor_id": 1452, | |
"product_id": 656, | |
"description": "Apple Internal Keyboard (MacBook Air (11-inch, Early 2014))" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "change Caps-lock(⇪) to left-Command(⌘) on non-Apple JIS keyboard", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "caps_lock", | |
"modifiers": {"optional": "any"} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "left_command" | |
} | |
], | |
"conditions": | |
[ | |
{ | |
"type": "device_unless", | |
"identifiers": | |
[ | |
{ | |
"vendor_id": 1452, | |
"product_id": 633, | |
"description": "Apple Internal Keyboard (MacBook (Retina, 12-inch, 2017))" | |
}, | |
{ | |
"vendor_id": 1452, | |
"product_id": 656, | |
"description": "Apple Internal Keyboard (MacBook Air (11-inch, Early 2014))" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
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": "Karabiner - functional keys settings", | |
"rules": | |
[ | |
{ | |
"description": "change Home(↖) to Command(⌘) + left-arrow", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "home", | |
"modifiers": {"optional": "any"} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": "command" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "change End(↘) to Command(⌘) + right-arrow", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "end", | |
"modifiers": {"optional": "any"} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": "command" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
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": "Karabiner - Japanese keyboard settings", | |
"rules": | |
[ | |
{ | |
"description": "change Yen-sign(\u00a5) to Backslash(\\)", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "international3" | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "international3", | |
"modifiers": "option" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "change Option(⌥) + Yen-sign(\u00a5) to Yen-sign(\u00a5)", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "international3", | |
"modifiers": | |
{ | |
"mandatory": "option" | |
} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "international3" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "change nfer(\u7121\u5909\u63db) to eisuu(\u82f1\u6570)", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "japanese_pc_nfer", | |
"modifiers": {"optional": "any"} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "change xfer(\u5909\u63db) to kana(\u304b\u306a)", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "japanese_pc_xfer", | |
"modifiers": {"optional": "any"} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "japanese_kana" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
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": "Karabiner - Windows-esque style settings", | |
"rules": | |
[ | |
{ | |
"description": "open Developer Tools/Web Inspector with Ctrl+Shift+I in Chrome/Safari/Firefox/Vivaldi", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "i", | |
"modifiers": | |
{ | |
"mandatory": ["left_command", "shift"] | |
} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "i", | |
"modifiers": ["option", "left_command"] | |
} | |
], | |
"conditions": | |
[ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": | |
[ | |
"^com\\.google\\.Chrome$", | |
"^com\\.google\\.Chrome.canary$", | |
"^com\\.google\\.Chrome.beta$", | |
"^com\\.google\\.Chrome.dev$", | |
"^org\\.chromium\\.Chromium$", | |
"^org\\.mozilla\\.firefox$", | |
"^com\\.vivaldi\\.Vivaldi$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "move file to trash with Delete on finder", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "delete_forward" | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "delete_or_backspace", | |
"modifiers": ["left_command"] | |
} | |
], | |
"conditions": | |
[ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": ["^com\\.apple\\.finder$"] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "delete file immediately with Shift+Delete on finder", | |
"manipulators": | |
[ | |
{ | |
"type": "basic", | |
"from": | |
{ | |
"key_code": "delete_forward", | |
"modifiers": | |
{ | |
"mandatory": ["shift"] | |
} | |
}, | |
"to": | |
[ | |
{ | |
"key_code": "delete_or_backspace", | |
"modifiers": ["option", "left_command"] | |
} | |
], | |
"conditions": | |
[ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": ["^com\\.apple\\.finder$"] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment