From 93d749ec8add0993d3d59af2f47359e9fb8337d0 Mon Sep 17 00:00:00 2001 From: adophoxia Date: Tue, 21 Mar 2023 12:49:14 -0700 Subject: [PATCH 1/3] Add Keychron Q11 --- v3/keychron/q11/q11_us_knob_v1.0.json | 308 ++++++++++++++++++++++++++ 1 file changed, 308 insertions(+) create mode 100644 v3/keychron/q11/q11_us_knob_v1.0.json diff --git a/v3/keychron/q11/q11_us_knob_v1.0.json b/v3/keychron/q11/q11_us_knob_v1.0.json new file mode 100644 index 0000000000..903abcde0d --- /dev/null +++ b/v3/keychron/q11/q11_us_knob_v1.0.json @@ -0,0 +1,308 @@ +{ + "name": "Keychron Q11", + "vendorId": "0x3434", + "productId": "0x01E0", + "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. CYCKE_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": "Mission Control", "title": "Mission Control in macOS", "shortName": "MCtrl"}, + {"name": "Launch Pad", "title": "Launch Pad in macOS", "shortName": "LPad"}, + {"name": "Left Option", "title": "Left Option in macOS", "shortName": "LOpt"}, + {"name": "Right Option", "title": "Right Option in macOS", "shortName": "ROpt"}, + {"name": "Left Cmd", "title": "Left Command in macOS", "shortName": "LCmd"}, + {"name": "Right Cmd", "title": "Right Command in macOS", "shortName": "RCmd"}, + {"name": "Siri", "title": "Siri in macOS", "shortName": "Siri"}, + {"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"} + ], + "matrix": {"rows": 12, "cols": 9}, + "layouts": { + "keymap": [ + [ + "0,0\n\n\n\n\n\n\n\n\ne0", + { + "x": 0.25, + "c": "#777777" + }, + "0,1\nESC", + { + "c": "#cccccc" + }, + "0,2", + "0,3", + "0,4", + "0,5", + { + "c": "#aaaaaa" + }, + "0,6", + "0,7", + "6,0", + "6,1", + { + "c": "#cccccc" + }, + "6,2", + "6,3", + "6,4", + "6,5", + { + "c": "#aaaaaa" + }, + "6,6", + "6,7", + { + "x": 0.25, + "c": "#cccccc" + }, + "6,8\n\n\n\n\n\n\n\n\ne1" + ], + [ + { + "y": 0.25 + }, + "1,0", + { + "x": 0.25 + }, + "1,1", + "1,2", + "1,3", + "1,4", + "1,5", + "1,6", + "1,7", + "7,0", + "7,1", + "7,2", + "7,3", + "7,4", + "7,5", + { + "c": "#aaaaaa", + "w": 2 + }, + "7,6", + { + "x": 0.25 + }, + "7,8" + ], + [ + { + "c": "#cccccc" + }, + "2,0", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 1.5 + }, + "2,1", + { + "c": "#cccccc" + }, + "2,2", + "2,3", + "2,4", + "2,6", + "2,7", + "8,0", + "8,1", + "8,2", + "8,3", + "8,4", + "8,5", + "8,6", + { + "w": 1.5 + }, + "8,7", + { + "x": 0.25, + "c": "#aaaaaa" + }, + "8,8" + ], + [ + { + "c": "#cccccc" + }, + "3,0", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 1.75 + }, + "3,1", + { + "c": "#cccccc" + }, + "3,2", + "3,3", + "3,4", + "3,5", + "3,6", + "9,0", + "9,1", + "9,2", + "9,3", + "9,4", + "9,5", + { + "c": "#777777", + "w": 2.25 + }, + "9,7", + { + "x": 0.25, + "c": "#aaaaaa" + }, + "9,8" + ], + [ + { + "c": "#cccccc" + }, + "4,0", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 2.25 + }, + "4,2", + { + "c": "#cccccc" + }, + "4,3", + "4,4", + "4,5", + "4,6", + "4,7", + "10,0", + "10,1", + "10,2", + "10,3", + "10,4", + { + "c": "#aaaaaa", + "w": 1.75 + }, + "10,5", + { + "x": 0.25, + "c": "#777777" + }, + "10,7" + ], + [ + { + "c": "#cccccc" + }, + "5,0", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 1.25 + }, + "5,1", + { + "w": 1.25 + }, + "5,2", + { + "w": 1.25 + }, + "5,3", + { + "w": 1.25 + }, + "5,4", + { + "c": "#cccccc", + "w": 2.25 + }, + "5,6", + { + "w": 2.75 + }, + "11,1", + { + "c": "#aaaaaa" + }, + "11,2", + "11,3", + "11,4", + { + "x": 0.25, + "c": "#777777" + }, + "11,6", + "11,7", + "11,8" + ] + ] + } +} From 6ef172fa963d869fe41808f1038c88759b222f12 Mon Sep 17 00:00:00 2001 From: adophoxia Date: Tue, 21 Mar 2023 12:56:23 -0700 Subject: [PATCH 2/3] Add `ANSI Knob` to Q11 JSON --- v3/keychron/q11/q11_us_knob_v1.0.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/keychron/q11/q11_us_knob_v1.0.json b/v3/keychron/q11/q11_us_knob_v1.0.json index 903abcde0d..379f09d95c 100644 --- a/v3/keychron/q11/q11_us_knob_v1.0.json +++ b/v3/keychron/q11/q11_us_knob_v1.0.json @@ -1,5 +1,5 @@ { - "name": "Keychron Q11", + "name": "Keychron Q11 ANSI Knob", "vendorId": "0x3434", "productId": "0x01E0", "keycodes": ["qmk_lighting"], From a419430fcb95b5715c56f7f32595685c36e6db14 Mon Sep 17 00:00:00 2001 From: adophoxia Date: Thu, 6 Apr 2023 19:51:17 -0700 Subject: [PATCH 3/3] Rename to `ansi_encoder.json` and add gap between halves --- ...11_us_knob_v1.0.json => ansi_encoder.json} | 50 ++++++++++--------- 1 file changed, 27 insertions(+), 23 deletions(-) rename v3/keychron/q11/{q11_us_knob_v1.0.json => ansi_encoder.json} (96%) diff --git a/v3/keychron/q11/q11_us_knob_v1.0.json b/v3/keychron/q11/ansi_encoder.json similarity index 96% rename from v3/keychron/q11/q11_us_knob_v1.0.json rename to v3/keychron/q11/ansi_encoder.json index 379f09d95c..27660e801b 100644 --- a/v3/keychron/q11/q11_us_knob_v1.0.json +++ b/v3/keychron/q11/ansi_encoder.json @@ -79,8 +79,11 @@ ], "matrix": {"rows": 12, "cols": 9}, "layouts": { - "keymap": [ + "keymap": [ [ + { + "c": "#aaaaaa" + }, "0,0\n\n\n\n\n\n\n\n\ne0", { "x": 0.25, @@ -99,6 +102,9 @@ }, "0,6", "0,7", + { + "x": 0.75 + }, "6,0", "6,1", { @@ -114,8 +120,7 @@ "6,6", "6,7", { - "x": 0.25, - "c": "#cccccc" + "x": 0.25 }, "6,8\n\n\n\n\n\n\n\n\ne1" ], @@ -128,12 +133,18 @@ "x": 0.25 }, "1,1", + { + "c": "#cccccc" + }, "1,2", "1,3", "1,4", "1,5", "1,6", "1,7", + { + "x": 0.75 + }, "7,0", "7,1", "7,2", @@ -151,13 +162,9 @@ "7,8" ], [ - { - "c": "#cccccc" - }, "2,0", { "x": 0.25, - "c": "#aaaaaa", "w": 1.5 }, "2,1", @@ -169,6 +176,9 @@ "2,4", "2,6", "2,7", + { + "x": 0.75 + }, "8,0", "8,1", "8,2", @@ -177,23 +187,19 @@ "8,5", "8,6", { + "c": "#aaaaaa", "w": 1.5 }, "8,7", { - "x": 0.25, - "c": "#aaaaaa" + "x": 0.25 }, "8,8" ], [ - { - "c": "#cccccc" - }, "3,0", { "x": 0.25, - "c": "#aaaaaa", "w": 1.75 }, "3,1", @@ -205,6 +211,9 @@ "3,4", "3,5", "3,6", + { + "x": 0.75 + }, "9,0", "9,1", "9,2", @@ -223,13 +232,9 @@ "9,8" ], [ - { - "c": "#cccccc" - }, "4,0", { "x": 0.25, - "c": "#aaaaaa", "w": 2.25 }, "4,2", @@ -241,6 +246,9 @@ "4,5", "4,6", "4,7", + { + "x": 0.75 + }, "10,0", "10,1", "10,2", @@ -259,12 +267,11 @@ ], [ { - "c": "#cccccc" + "c": "#aaaaaa" }, "5,0", { "x": 0.25, - "c": "#aaaaaa", "w": 1.25 }, "5,1", @@ -281,17 +288,14 @@ }, "5,4", { - "c": "#cccccc", "w": 2.25 }, "5,6", { + "x": 0.75, "w": 2.75 }, "11,1", - { - "c": "#aaaaaa" - }, "11,2", "11,3", "11,4",