Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save joe-sharp/dcf6ad15ffb10b8f9592d993f56ca381 to your computer and use it in GitHub Desktop.

Select an option

Save joe-sharp/dcf6ad15ffb10b8f9592d993f56ca381 to your computer and use it in GitHub Desktop.
Enhanced Razer Naga V2 Profile for Karabiner Elements
Copy the contents of the raw json file into the Complex Modification window.
The two "product_id" identifiers allow the modifications to work with Bluetooth or 2.4 GHz wireless.
Optionally set a simple modification for the mouse wheel:
`button3 => left_control`
Here is a simple key of the mapping:
# 0, -, and = are 10, 11, 12 on the mouse
naga_v2:
1: 'cmd+c' # copy
2: 'cmd+v' # paste
3: 'shift'
4: 'cmd+option+left_arrow' # switch tab left
^4: 'ctrl+left_arrow' # switch space left
5: 'ctrl+up_arrow' # mission control
6: 'cmd+option+right_arrow' # switch tab right
^6: 'ctrl+right_arrow' # switch space right
7: 'cmd+[' # back
^7: 'cmd+]' # forward
8: 'tab'
9: 'escape'
0: 'alt+j' # next issue
^0: 'alt+k' # previous issue
-: 'cmd+y' # accept suggestion
^-: 'cmd+n' # reject suggestion, new window
=: 'cmd+return' # accept file
^=: 'cmd+shift+delete' # reject file
⌘=: 'return'
{
"description": "Enhanced Razer Naga V2 Profile",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "1",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "c",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "2",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "v",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "3",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "left_shift",
"modifiers": []
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "4",
"modifiers": { "optional": [] }
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["left_command", "left_option"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "4",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["left_control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "5",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "up_arrow",
"modifiers": ["left_control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "6",
"modifiers": { "optional": [] }
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["left_command", "left_option"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "6",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["left_control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "7",
"modifiers": {}
},
"to": [
{
"key_code": "open_bracket",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "7",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [
{
"key_code": "close_bracket",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "8",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "tab",
"modifiers": []
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "9",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "escape",
"modifiers": []
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "0",
"modifiers": {}
},
"to": [
{
"key_code": "j",
"modifiers": ["left_option"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "0",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [
{
"key_code": "k",
"modifiers": ["left_option"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "hyphen",
"modifiers": {}
},
"to": [
{
"key_code": "y",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "hyphen",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [
{
"key_code": "n",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "equal_sign",
"modifiers": {}
},
"to": [
{
"key_code": "return_or_enter",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "equal_sign",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{ "product_id": 180 },
{ "product_id": 181 }
],
"type": "device_if"
}
],
"from": {
"key_code": "equal_sign",
"modifiers": { "mandatory": ["left_command"] }
},
"to": [
{
"key_code": "return_or_enter",
"modifiers": []
}
],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment