https://github.com/figadore/karabiner-gen
https://github.com/figadore/karabiner-gen
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/figadore/karabiner-gen
- Owner: figadore
- Created: 2017-10-03T22:22:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T20:13:12.000Z (over 8 years ago)
- Last Synced: 2025-04-10T05:12:27.648Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Run `node gen.js > output.json` to create the `manipulators` array to put in the karabiner config file
Place outputs in a wrapper in ~/.config/karabiner/assets/complex_modifications/programmer.json
```
{
"title": "Reese's",
"rules": [
{
"description": "Switch to programmer symbol keys.",
"manipulators": [
]
}
]
}
```
along with the following manipulators
```
{
"description": "Post escape if caps is pressed alone, left_ctrl otherwise",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
},
{
"description": "Map left_ctrl to caps_lock.",
"manipulators": [
{
"from": {
"key_code": "left_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "caps_lock"
}
],
"type": "basic"
}
]
}
```
Also switch `command` and `option` if needed (karabiner overrides mac system preferences for swapping modifier keys)