Skip to content

Instantly share code, notes, and snippets.

@blueset blueset/pok3r.json
Created Oct 10, 2017

Embed
What would you like to do?
Eana's Karabiner-Element Complex Modifications
{
"title": "Eana's POK3R Mods",
"rules": [
{
"description": "[POK3R] Cmd+ESC to Cmd+`",
"manipulators": [
{
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]
}],
"type": "basic",
"from": {
"key_code": "f5",
"modifiers": {
"mandatory": ["command"],
"optional": ["any"]
}
},
"to": [{
"key_code": "grave_accent_and_tilde",
"modifiers": ["left_control"]
}]
}
]
},
{
"description": "[POK3R] SPACE+hnei to navigation keys",
"manipulators": [
{
"description": "Space to Caps",
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]
}],
"type": "basic",
"from": {
"key_code": "spacebar",
"modifiers": {"optional": ["any"]}
},
"to": [
{
"set_variable": {
"name": "modifier_space",
"value": 1
}
}
],
"to_if_alone": [
{
"key_code": "spacebar"
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "modifier_space",
"value": 0
}
}
]
},
{
"description": "Space + H = Left",
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]
},
{ "type": "variable_if", "name": "modifier_space", "value": 1 }
],
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {"optional": ["any"]}
},
"to": [{"key_code": "left_arrow"}]
},{
"description": "Space + J = Down",
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]
},
{ "type": "variable_if", "name": "modifier_space", "value": 1 }
],
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {"optional": ["any"]}
},
"to": [{"key_code": "down_arrow"}]
},
{
"description": "Space + K = Up",
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]
},
{ "type": "variable_if", "name": "modifier_space", "value": 1 }
],
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {"optional": ["any"]}
},
"to": [{"key_code": "up_arrow"}]
},
{
"description": "Space + L = Right",
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]
},
{ "type": "variable_if", "name": "modifier_space", "value": 1 }
],
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {"optional": ["any"]}
},
"to": [{"key_code": "right_arrow"}]
}
]
},
{
"description": "[POK3R] Swap option and command",
"manipulators": [
{
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]
}],
"type": "basic",
"from": {
"key_code": "left_command",
"modifiers": {"optional": ["any"]}
},
"to": [{"key_code": "left_option"}]
},
{
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]
}],
"type": "basic",
"from": {
"key_code": "left_option",
"modifiers": {"optional": ["any"]}
},
"to": [{"key_code": "left_command"}]
},
{
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]
}],
"type": "basic",
"from": {
"key_code": "right_command",
"modifiers": {"optional": ["any"]}
},
"to": [{"key_code": "right_option"}]
},
{
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]
}],
"type": "basic",
"from": {
"key_code": "right_option",
"modifiers": {"optional": ["any"]}
},
"to": [{"key_code": "right_command"}]
}
]
}
]
}
{
"title": "Eana's Private modes",
"rules": [
{
"description": "Caps = Del, Ctrl + Caps = Caps",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"mandatory": ["control"],
"optional": ["caps_lock"]
}
},
"to": [{
"key_code": "caps_lock"
}]
},
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": ["any"]
}
},
"to": [{
"key_code": "delete_or_backspace"
}]
}
]
},
{
"description": "PC's Application to R Option",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "application"
},
"to": [
{
"key_code": "right_option"
}
]
}
]
},
{
"description": "Shift+delete = forward delete",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": ["shift"]
}
},
"to": [
{
"key_code": "delete_forward"
}
]
}
]
},
{
"description": "Fn + letter, number, symbol to delete",
"manipulators": [
{
"type": "basic",
"from": { "key_code": "grave_accent_and_tilde", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "grave_accent_and_tilde", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "1", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "1", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "2", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "2", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "4", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "4", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "5", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "5", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "6", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "6", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "7", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "7", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "8", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "8", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "9", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "9", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "0", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "0", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "hyphen", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "hyphen", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "equal_sign", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "equal_sign", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "q", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "q", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "w", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "w", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "e", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "e", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "r", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "r", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "t", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "t", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "y", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "y", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "u", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "u", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "i", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "i", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "o", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "o", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "p", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "p", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "open_bracket", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "open_bracket", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "close_bracket", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "close_bracket", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "backslash", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "backslash", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "a", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "a", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "s", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "s", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "d", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "d", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "f", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "f", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "g", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "g", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "h", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "h", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "j", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "j", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "k", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "k", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "l", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "l", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "semicolon", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "semicolon", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "quote", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "quote", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "z", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "z", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "x", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "x", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "c", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "c", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "v", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "v", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "b", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "b", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "n", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "n", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "m", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "m", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "comma", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "comma", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "period", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "period", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "slash", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "slash", "modifiers": ["shift", "command", "option", "control"]}]
},
{
"type": "basic",
"from": { "key_code": "spacebar", "modifiers": {"mandatory": ["fn"]}},
"to": [{ "key_code": "spacebar", "modifiers": ["shift", "command", "option", "control"]}]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.