Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save erlangparasu/222af6c65a959f95c128e70b17bf9214 to your computer and use it in GitHub Desktop.

Select an option

Save erlangparasu/222af6c65a959f95c128e70b17bf9214 to your computer and use it in GitHub Desktop.
karabiner element: New Rule (new modifier RightAlt and Space for symbols)
{
"description": "New Rule (new modifier RightAlt and Space for symbols)",
"manipulators": [
{
"description": "1. State Machine: Right Option triggers layer",
"from": {
"key_code": "right_option",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"set_variable": {
"name": "right_option_layer_active",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "right_option_layer_active",
"value": 0
}
}
],
"to_if_alone": [{ "key_code": "right_option" }],
"type": "basic"
},
{
"description": "2. State Machine: Space",
"from": {
"key_code": "spacebar",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"set_variable": {
"name": "spacebar_layer_active",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "spacebar_layer_active",
"value": 0
}
}
],
"to_if_alone": [{ "key_code": "spacebar" }],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "h become Left",
"from": {
"key_code": "h",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["any"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "j become Down",
"from": {
"key_code": "j",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "down_arrow",
"modifiers": ["any"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "k become Up",
"from": {
"key_code": "k",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "up_arrow",
"modifiers": ["any"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "spacebar_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "l become Right",
"from": {
"key_code": "l",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["any"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "a -> !",
"from": {
"key_code": "a",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "1",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "s -> @",
"from": {
"key_code": "s",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "2",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "d -> #",
"from": {
"key_code": "d",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "3",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "f -> $",
"from": {
"key_code": "f",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "4",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "g -> %",
"from": {
"key_code": "g",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "5",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "q -> ^",
"from": {
"key_code": "q",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "6",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "w -> &",
"from": {
"key_code": "w",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "7",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "e -> *",
"from": {
"key_code": "e",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "8",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "z -> (",
"from": {
"key_code": "z",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "9",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "x -> )",
"from": {
"key_code": "x",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "0",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "c -> _",
"from": {
"key_code": "c",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "hyphen",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "v -> +",
"from": {
"key_code": "v",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "equal_sign",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "r -> {",
"from": {
"key_code": "r",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "open_bracket",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "t -> }",
"from": {
"key_code": "t",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "close_bracket",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "right_option_layer_active",
"type": "variable_if",
"value": 1
}
],
"description": "b -> |",
"from": {
"key_code": "b",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "backslash",
"modifiers": ["left_shift"]
}
],
"type": "basic"
}
]
}
@erlangparasu
Copy link
Copy Markdown
Author

Spacebar + Key = Navigation

                +---+---+---+---+
                | H | J | K | L |
                | ← | ↓ | ↑ | → |
                +---+---+---+---+

@erlangparasu
Copy link
Copy Markdown
Author

Right Option + Key = Symbol

+---+---+---+---+---+
| Q | W | E | R | T |
| ^ | & | * | { | } |
+---+---+---+---+---+
  | A | S | D | F | G |
  | ! | @ | # | $ | % |
  +---+---+---+---+---+
    | Z | X | C | V | B |
    | ( | ) | _ | + | | |
    +---+---+---+---+---+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment