Skip to content

Instantly share code, notes, and snippets.

@jcarlos
Created December 5, 2021 11:03
Show Gist options
  • Save jcarlos/919f95eb1aaf926b0af9d15c36b977e0 to your computer and use it in GitHub Desktop.
Save jcarlos/919f95eb1aaf926b0af9d15c36b977e0 to your computer and use it in GitHub Desktop.
Karabiner RightOption FN for Lenovo Trackpoint II, adds dev symbols to home row and easy ' and "
{
"title": "Right OptionFN",
"rules": [
{
"description": "Right OptionFN: home row dev symbols",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_option",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"set_variable": {
"name": "optionfn_mode",
"value": 1
}
}
],
"to_if_alone": [
{
"key_code": "quote"
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "optionfn_mode",
"value": 0
}
}
]
}
]
},
{
"description": "OptionFN: RightOption+asdfghjkl; to &[{(%#)}]|, right option to quote, printscreen to double quote",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "f",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "9",
"modifiers": ["left_shift"]
}
],
"conditions": [
{
"type": "variable_if",
"name": "optionfn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "0",
"modifiers": ["left_shift"]
}
],
"conditions": [
{
"type": "variable_if",
"name": "optionfn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "d",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "open_bracket",
"modifiers": ["left_shift"]
}
],
"conditions": [
{
"type": "variable_if",
"name": "optionfn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "close_bracket",
"modifiers": ["left_shift"]
}
],
"conditions": [
{
"type": "variable_if",
"name": "optionfn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "s",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "open_bracket"
}
],
"conditions": [
{
"type": "variable_if",
"name": "optionfn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "close_bracket"
}
],
"conditions": [
{
"type": "variable_if",
"name": "optionfn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "g",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "5",
"modifiers": ["left_shift"]
}
],
"conditions": [
{
"type": "variable_if",
"name": "optionfn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "a",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "7",
"modifiers": ["left_shift"]
}
],
"conditions": [
{
"type": "variable_if",
"name": "optionfn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "3",
"modifiers": ["left_shift"]
}
],
"conditions": [
{
"type": "variable_if",
"name": "optionfn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "semicolon",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "backslash",
"modifiers": ["left_shift"]
}
],
"conditions": [
{
"type": "variable_if",
"name": "optionfn_mode",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "print_screen"
},
"to": [
{
"repeat": true,
"key_code": "quote",
"modifiers": ["left_shift"]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment