Skip to content

Instantly share code, notes, and snippets.

@jlnr
Last active August 13, 2018 19:08
Show Gist options
  • Save jlnr/abc4464131d3dfac26359f9faa6c8ee8 to your computer and use it in GitHub Desktop.
Save jlnr/abc4464131d3dfac26359f9faa6c8ee8 to your computer and use it in GitHub Desktop.
My Karabiner settings to make Caps Lock useful on a German keyboard (drop into .config/karabiner/assets/complex_modifications/)
{
"title": "My Karabiner settings to make Caps Lock useful on a German keyboard",
"rules": [{
"description": "Map Caps Lock to {, and Shift-Caps Lock to }",
"manipulators": [{
"type": "basic",
"from": { "key_code": "caps_lock", "modifiers": {} },
"to": [{ "key_code": "8", "modifiers": ["left_option"] }]
},
{
"type": "basic",
"from": { "key_code": "caps_lock", "modifiers": { "mandatory": ["left_shift"] } },
"to": [{ "key_code": "9", "modifiers": ["left_option"] }]
},
{
"type": "basic",
"from": { "key_code": "caps_lock", "modifiers": { "mandatory": ["right_shift"] } },
"to": [{ "key_code": "9", "modifiers": ["left_option"] }]
}]
},
{
"description": "Map Option-Caps Lock to [, and Shift-Option-Caps Lock to ]",
"manipulators": [{
"type": "basic",
"from": { "key_code": "caps_lock", "modifiers": { "mandatory": ["left_option"] } },
"to": [{ "key_code": "5", "modifiers": ["left_option"] }]
},
{
"type": "basic",
"from": { "key_code": "caps_lock", "modifiers": { "mandatory": ["right_option"] } },
"to": [{ "key_code": "5", "modifiers": ["left_option"] }]
},
{
"type": "basic",
"from": { "key_code": "caps_lock", "modifiers": { "mandatory": ["left_shift", "left_option"] } },
"to": [{ "key_code": "6", "modifiers": ["left_option"] }]
},
{
"type": "basic",
"from": { "key_code": "caps_lock", "modifiers": { "mandatory": ["right_shift", "right_option"] } },
"to": [{ "key_code": "6", "modifiers": ["left_option"] }]
}]
},
{
"description": "Allow locking the screen with Ctrl-Shift-Backspace (instead of Eject)",
"manipulators": [{
"type": "basic",
"from": { "key_code": "delete_or_backspace", "modifiers": { "mandatory": ["left_control", "left_shift"] } },
"to": [{ "key_code": "eject", "modifiers": ["left_control", "left_shift"] } ]
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment