Skip to content

Instantly share code, notes, and snippets.

@jorgeyp
Last active March 9, 2019 13:38
Show Gist options
  • Save jorgeyp/3e0a5a5484a52f58e5fe5f7068da8292 to your computer and use it in GitHub Desktop.
Save jorgeyp/3e0a5a5484a52f58e5fe5f7068da8292 to your computer and use it in GitHub Desktop.
{
"title": "Microsoft Sculpt Mouse",
"rules": [
{
"description": "Mission Control, expose and launchpad with side button",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"left_command"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_control"
]
}
],
"conditions": [
{
"type": "device_if",
"identifiers": [
{
"vendor_id": 1118,
"product_id": 1957,
"is_keyboard": false,
"is_pointing_device": true
}
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"left_command"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_control"
]
}
],
"conditions": [
{
"type": "device_if",
"identifiers": [
{
"vendor_id": 1118,
"product_id": 1957,
"is_keyboard": false,
"is_pointing_device": true
}
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "left_command",
"modifiers": {
"optional": [
"left_command"
]
}
},
"to_if_alone": [
{
"key_code": "launchpad"
}
],
"conditions": [
{
"type": "device_if",
"identifiers": [
{
"vendor_id": 1118,
"product_id": 1957,
"is_keyboard": false,
"is_pointing_device": true
}
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment