Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
269 changes: 269 additions & 0 deletions v3/keychron/k2_pro/ansi_rgb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
{
"name": "Keychron K2 Pro ANSI RGB",
"vendorId": "0x3434",
"productId": "0x0220",
"keycodes": ["qmk_lighting"],
"menus": [
{
"label": "Lighting",
"content": [
{
"label": "Backlight",
"content": [
{
"label": "Brightness",
"type": "range",
"options": [0, 255],
"content": ["id_qmk_rgb_matrix_brightness", 3, 1]
},
{
"label": "Effect",
"type": "dropdown",
"content": ["id_qmk_rgb_matrix_effect", 3, 2],
"options": [
["00. None", 0],
["01. SOLID_COLOR", 1],
["02. BREATHING", 2],
["03. BAND_SPIRAL_VAL", 3],
["04. CYCLE_ALL", 4],
["05. CYCLE_LEFT_RIGHT", 5],
["06. CYCLE_UP_DOWN", 6],
["07. RAINBOW_MOVING_CHEVRON", 7],
["08. CYCLE_OUT_IN", 8],
["09. CYCLE_OUT_IN_DUAL", 9],
["10. CYCLE_PINWHEEL", 10],
["11. CYCLE_SPIRAL", 11],
["12. DUAL_BEACON", 12],
["13. RAINBOW_BEACON", 13],
["14. JELLYBEAN_RAINDROPS", 14],
["15. PIXEL_RAIN", 15],
["16. TYPING_HEATMAP", 16],
["17. DIGITAL_RAIN", 17],
["18. REACTIVE_SIMPLE", 18],
["19. REACTIVE_MULTIWIDE", 19],
["20. REACTIVE_MULTINEXUS", 20],
["21. SPLASH", 21],
["22. SOLID_SPLASH", 22]
]
},
{
"showIf": "{id_qmk_rgb_matrix_effect} > 1",
"label": "Effect Speed",
"type": "range",
"options": [0, 255],
"content": ["id_qmk_rgb_matrix_effect_speed", 3, 3]
},
{
"showIf": "{id_qmk_rgb_matrix_effect} != 0",
"label": "Color",
"type": "color",
"content": ["id_qmk_rgb_matrix_color", 3, 4]
}
]
}
]
}
],
"customKeycodes": [
{"name": "Left Option", "title": "Left Option", "shortName": "LOpt"},
{"name": "Right Option", "title": "Right Option", "shortName": "ROpt"},
{"name": "Left Cmd", "title": "Left Command", "shortName": "LCmd"},
{"name": "Right Cmd", "title": "Right Command", "shortName": "RCmd"},
{"name": "Misson Control", "title": "Misson Control, availabe in macOS", "shortName": "MCtrl"},
{"name": "Launch pad", "title": "Launch pad, availabe in macOS", "shortName": "LPad"},
{"name": "Task View", "title": "Task View in Windows", "shortName": "Task"},
{"name": "File Explorer", "title": "File Explorer in Windows", "shortName": "File"},
{"name": "Screen shot", "title": "Screenshot in macOS", "shortName": "SShot"},
{"name": "Cortana", "title": "Cortana in Windows", "shortName": "Cortana"},
{"name": "Siri", "title": "Siri in macOS", "shortName": "Siri"},
{"name": "Bluetooth Host 1", "title": "Bluetooth Host 1", "shortName": "BT1"},
{"name": "Bluetooth Host 2", "title": "Bluetooth Host 2", "shortName": "BT2"},
{"name": "Bluetooth Host 3", "title": "Bluetooth Host 3", "shortName": "BT3"},
{"name": "Battery Level", "title": "Show battery level", "shortName": "Batt"}
],
"matrix": {"rows": 6, "cols": 16},
"layouts": {
"keymap":[
[
{
"c": "#777777"
},
"0,0",
{
"c": "#cccccc"
},
"0,1",
"0,2",
"0,3",
"0,4",
{
"c": "#aaaaaa"
},
"0,5",
"0,6",
"0,7",
"0,8",
"0,9",
{
"c": "#cccccc"
},
"0,10",
"0,11",
"0,12",
{
"c": "#aaaaaa"
},
"0,13",
"0,14",
"0,15"
],
[
{
"c": "#aaaaaa"
},
"1,0",
{
"c": "#cccccc"
},
"1,1",
"1,2",
"1,3",
"1,4",
"1,5",
"1,6",
"1,7",
"1,8",
"1,9",
"1,10",
"1,11",
"1,12",
{
"w": 2,
"c": "#aaaaaa"
},
"1,13",
"1,15"
],
[
{
"w": 1.5
},
"2,0",
{
"c": "#cccccc"
},
"2,1",
"2,2",
"2,3",
"2,4",
"2,5",
"2,6",
"2,7",
"2,8",
"2,9",
"2,10",
"2,11",
"2,12",
{
"w": 1.5,
"c": "#aaaaaa"
},
"2,13",
"2,15"
],
[
{
"w": 1.75
},
"3,0",
{
"c": "#cccccc"
},
"3,1",
"3,2",
"3,3",
"3,4",
"3,5",
"3,6",
"3,7",
"3,8",
"3,9",
"3,10",
"3,11",
{
"w": 2.25,
"c": "#777777"
},
"3,13",
{
"c": "#aaaaaa"
},
"3,15"
],
[
{
"w": 2.25,
"c": "#aaaaaa"
},
"4,0",
{
"c": "#cccccc"
},
"4,2",
"4,3",
"4,4",
"4,5",
"4,6",
"4,7",
"4,8",
"4,9",
"4,10",
"4,11",
{
"w": 1.75,
"c": "#aaaaaa"
},
"4,12",
{
"c": "#cccccc"
},
"4,13",
{
"c": "#aaaaaa"
},
"4,15"
],
[
{
"w": 1.25,
"c": "#aaaaaa"
},
"5,0",
{
"w": 1.25
},
"5,1",
{
"w": 1.25
},
"5,2",
{
"w": 6.25,
"c": "#cccccc"
},
"5,6",
{
"c": "#aaaaaa"
},
"5,9",
"5,10",
"5,11",
{
"c": "#cccccc"
},
"5,12",
"5,13",
"5,15"
]]
}
}
Loading