From 3cb362ce6c94c01704afc5b07e3c5e281eaa24a1 Mon Sep 17 00:00:00 2001 From: Slava Date: Tue, 28 Nov 2023 15:19:27 +0300 Subject: [PATCH] keymap: port to vial-qmk --- keymap/config.h | 14 ++++++- rules.mk | 4 ++ vial.json | 101 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 118 insertions(+), 1 deletion(-) create mode 100644 rules.mk create mode 100644 vial.json diff --git a/keymap/config.h b/keymap/config.h index d326c9d..32c68f3 100644 --- a/keymap/config.h +++ b/keymap/config.h @@ -16,9 +16,21 @@ along with this program. If not, see . #pragma once - #define USE_SERIAL #define MASTER_LEFT #define SPLIT_USB_DETECT #define SPLIT_USB_TIMEOUT 2500 + + +#define VIAL_KEYBOARD_UID {0x8A, 0x86, 0x65, 0x9D, 0x13, 0xE1, 0xCB, 0x81} + +// Vial unlock +#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 1 } + +// Vial features +#define DYNAMIC_KEYMAP_LAYER_COUNT 5 +#define DYNAMIC_MACRO_SIZE 0 +#define VIAL_TAP_DANCE_ENTRIES 0 +#define VIAL_COMBO_ENTRIES 0 diff --git a/rules.mk b/rules.mk new file mode 100644 index 0000000..df8a156 --- /dev/null +++ b/rules.mk @@ -0,0 +1,4 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes + +LTO_ENABLE = yes diff --git a/vial.json b/vial.json new file mode 100644 index 0000000..0875d0f --- /dev/null +++ b/vial.json @@ -0,0 +1,101 @@ +{ + "name": "Dactyl Manuform (5x6-5)", + "vendorId": "0x444D", + "productId": "0x3536", + "lighting": "none", + "matrix": {"rows": 12, "cols": 6}, + "layouts": { + "keymap": [ + [{"x": 3.5}, "0,3", {"x": 7.5}, "6,2"], + [ + {"y": -0.875, "x": 2.5}, + "0,2", + {"x": 1}, + "0,4", + {"x": 5.5}, + "6,1", + {"x": 1}, + "6,3" + ], + [{"y": -0.875, "x": 5.5}, "0,5", {"x": 3.5}, "6,0"], + [ + {"y": -0.875, "w": 1.5}, + "0,0", + "0,1", + {"x": 11.5}, + "6,4", + {"w": 1.5}, + "6,5" + ], + [{"y": -0.375, "x": 3.5}, "1,3", {"x": 7.5}, "7,2"], + [ + {"y": -0.875, "x": 2.5}, + "1,2", + {"x": 1}, + "1,4", + {"x": 5.5}, + "7,1", + {"x": 1}, + "7,3" + ], + [{"y": -0.875, "x": 5.5}, "1,5", {"x": 3.5}, "7,0"], + [ + {"y": -0.875, "w": 1.5}, + "1,0", + "1,1", + {"x": 11.5}, + "7,4", + {"w": 1.5}, + "7,5" + ], + [{"y": -0.375, "x": 3.5}, "2,3", {"x": 7.5}, "8,2"], + [ + {"y": -0.875, "x": 2.5}, + "2,2", + {"x": 1}, + "2,4", + {"x": 5.5}, + "8,1", + {"x": 1}, + "8,3" + ], + [{"y": -0.875, "x": 5.5}, "2,5", {"x": 3.5}, "8,0"], + [ + {"y": -0.875, "w": 1.5}, + "2,0", + "2,1", + {"x": 11.5}, + "8,4", + {"w": 1.5}, + "8,5" + ], + [{"y": -0.375, "x": 3.5}, "3,3", {"x": 7.5}, "9,2"], + [ + {"y": -0.875, "x": 2.5}, + "3,2", + {"x": 1}, + "3,4", + {"x": 5.5}, + "9,1", + {"x": 1}, + "9,3" + ], + [{"y": -0.875, "x": 5.5}, "3,5", {"x": 3.5}, "9,0"], + [ + {"y": -0.875, "w": 1.5}, + "3,0", + "3,1", + {"x": 11.5}, + "9,4", + {"w": 1.5}, + "9,5" + ], + [{"y": -0.375, "x": 3.5}, "4,3", {"x": 7.5}, "10,2"], + [{"y": -0.875, "x": 2.5}, "4,2", {"x": 9.5}, "10,3"], + [{"r": 30, "rx": 5, "ry": 4.5}, "4,4", "5,5", "5,3"], + [{"x": 1}, "5,4", "5,2"], + [{"r": -30, "rx": 11.5, "x": -3}, "11,2", "11,0", "10,1"], + [{"x": -3}, "11,3", "11,1"] + ] + } +}