Skip to content

Instantly share code, notes, and snippets.

@CyrusRoshan
Last active June 10, 2023 00:18
Show Gist options
  • Save CyrusRoshan/f5bdd7829385902ab213ed585baae918 to your computer and use it in GitHub Desktop.
Save CyrusRoshan/f5bdd7829385902ab213ed585baae918 to your computer and use it in GitHub Desktop.
{
"title": "Kinesis keyboard setup",
"rules": [
{
"description": "Windows CMD<>OPT swap",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_gui",
"modifiers": {
"optional": ["any"]
}
},
"conditions": [
{
"type": "device_if",
"description": "Kinesis Windows keyboard",
"identifiers": [
{
"location_id": 18034688,
"product_id": 37904,
"vendor_id": 1423,
"is_keyboard": true
}
]
}
],
"to": [
{
"key_code": "left_alt"
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_gui",
"modifiers": {
"optional": ["any"]
}
},
"conditions": [
{
"type": "device_if",
"description": "Kinesis Windows keyboard",
"identifiers": [
{
"location_id": 18034688,
"product_id": 37904,
"vendor_id": 1423,
"is_keyboard": true
}
]
}
],
"to": [
{
"key_code": "right_alt"
}
]
},
{
"type": "basic",
"from": {
"key_code": "left_alt",
"modifiers": {
"optional": ["any"]
}
},
"conditions": [
{
"type": "device_if",
"description": "Kinesis Windows keyboard",
"identifiers": [
{
"location_id": 18034688,
"product_id": 37904,
"vendor_id": 1423,
"is_keyboard": true
}
]
}
],
"to": [
{
"key_code": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_alt",
"modifiers": {
"optional": ["any"]
}
},
"conditions": [
{
"type": "device_if",
"description": "Kinesis Windows keyboard",
"identifiers": [
{
"location_id": 18034688,
"product_id": 37904,
"vendor_id": 1423,
"is_keyboard": true
}
]
}
],
"to": [
{
"key_code": "right_gui"
}
]
}
]
},
{
"description": "Mac Mouse keyboard Right Hand",
"manipulators": [
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["left_control", "left_command"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"vertical_wheel": -64
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_control", "left_command"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"vertical_wheel": 64
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_control", "left_command"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"horizontal_wheel": 64
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_control", "left_command"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"horizontal_wheel": -64
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"x": -1600
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"y": 1600
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"y": -1600
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"x": 1600
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_control", "right_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"x": -500
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_control", "right_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"y": 500
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["left_control", "right_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"y": -500
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_control", "right_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"x": 500
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"pointing_button": "button1"
}
],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"pointing_button": "button2"
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_control", "left_alt"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"x": -500
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_control", "left_alt"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"y": 500
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["left_control", "left_alt"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"y": -500
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_control", "left_alt"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"x": 500
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"x": -3000
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"y": 3000
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"y": -3000
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"x": 3000
}
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment