Last active
February 23, 2023 01:22
-
-
Save gh640/272b3b479418b27f1f290058fe0395b5 to your computer and use it in GitHub Desktop.
Karabiner-Elements configuration to change sign keys to numpad sign keys if pressed with both shift keys
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": "Both shifts + signs => Keypad signs", | |
"rules": [ | |
{ | |
"description": "Both shifts + - => Keypad -", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "hyphen", | |
"modifiers": { | |
"mandatory": [ | |
"left_shift", | |
"right_shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"repeat": true, | |
"key_code": "keypad_hyphen" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Both shifts + = => Keypad +", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "equal_sign", | |
"modifiers": { | |
"mandatory": [ | |
"left_shift", | |
"right_shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"repeat": true, | |
"key_code": "keypad_plus" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Both shifts + . => Keypad .", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "period", | |
"modifiers": { | |
"mandatory": [ | |
"left_shift", | |
"right_shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"repeat": true, | |
"key_code": "keypad_period" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Both shifts + / => Keypad /", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "slash", | |
"modifiers": { | |
"mandatory": [ | |
"left_shift", | |
"right_shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"repeat": true, | |
"key_code": "keypad_slash" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Installation
Approach A) Import with link
url='https://gist.githubusercontent.com/gh640/272b3b479418b27f1f290058fe0395b5/raw/f9b6aa0302aa69638d2635fbc581d6be729f01d1/both-shifts-keypad-2.json'
open 'karabiner://karabiner/assets/complex_modifications/import?url=${url}'
Approach B) Download and put the file manually
url='https://gist.githubusercontent.com/gh640/272b3b479418b27f1f290058fe0395b5/raw/f9b6aa0302aa69638d2635fbc581d6be729f01d1/both-shifts-keypad-2.json'
cd ~/.config/karabiner/assets/complex_modifications
http -d "${url}"
See also:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
14.11.0
The keyboard layout is expected to be ANSI.