From 7137da7951b6a1f06ce8435558c593c251b783b7 Mon Sep 17 00:00:00 2001 From: Less/Rikki <86894501+lesshonor@users.noreply.github.com> Date: Sun, 22 Dec 2024 05:17:23 -0500 Subject: [PATCH] feat: vial keymap (#831) --- keyboards/mechwild/bb65/keymaps/vial/config.h | 22 ++++++++++ .../mechwild/bb65/keymaps/vial/keymap.json | 41 +++++++++++++++++++ .../mechwild/bb65/keymaps/vial/vial.json | 17 ++++++++ 3 files changed, 80 insertions(+) create mode 100644 keyboards/mechwild/bb65/keymaps/vial/config.h create mode 100644 keyboards/mechwild/bb65/keymaps/vial/keymap.json create mode 100644 keyboards/mechwild/bb65/keymaps/vial/vial.json diff --git a/keyboards/mechwild/bb65/keymaps/vial/config.h b/keyboards/mechwild/bb65/keymaps/vial/config.h new file mode 100644 index 0000000000..cbda8e0e75 --- /dev/null +++ b/keyboards/mechwild/bb65/keymaps/vial/config.h @@ -0,0 +1,22 @@ +/* +Copyright 2021 Kyle McCreery +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#pragma once + +/* VIAL Specific definitions */ +#define VIAL_KEYBOARD_UID {0x8B, 0x1A, 0x35, 0x03, 0x78, 0x01, 0xB3, 0x6B} +#define VIAL_UNLOCK_COMBO_ROWS { 0, 6 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 3 } + +#define DYNAMIC_KEYMAP_MACRO_COUNT 32 diff --git a/keyboards/mechwild/bb65/keymaps/vial/keymap.json b/keyboards/mechwild/bb65/keymaps/vial/keymap.json new file mode 100644 index 0000000000..efd2900700 --- /dev/null +++ b/keyboards/mechwild/bb65/keymaps/vial/keymap.json @@ -0,0 +1,41 @@ +{ + "keyboard": "mechwild/bb65", + "keymap": "vial", + "version": 1, + "layout": "LAYOUT_all", + "layers": [ + [ + "QK_GESC", "KC_1", "KC_2", "KC_3", "KC_4", "KC_5", "KC_6", "KC_7", "KC_8", "KC_9", "KC_0", "KC_MINS", "KC_EQL", "KC_BSPC", + "KC_TAB", "KC_Q", "KC_W", "KC_E", "KC_R", "KC_T", "KC_Y", "KC_U", "KC_I", "KC_O", "KC_P", "KC_LBRC", "KC_RBRC", "KC_BSLS", + "MO(1)", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "KC_J", "KC_K", "KC_L", "KC_SCLN", "KC_QUOT", "KC_TRNS", "KC_ENT", + "KC_LSFT", "KC_TRNS", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_SLSH", "KC_RSFT", "KC_UP", "UG_TOGG", + "UG_PREV", "KC_LGUI", "UG_NEXT", "KC_SPC", "KC_RALT", "KC_RGUI", "KC_RCTL", "KC_LEFT", "KC_DOWN", "KC_RGHT" + ], + [ + "KC_TRNS", "KC_F1", "KC_F2", "KC_F3", "KC_F4", "KC_F5", "KC_F6", "KC_F7", "KC_F8", "KC_F9", "KC_F10", "KC_F11", "KC_F12", "KC_DEL", + "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", + "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", + "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_PGUP", "KC_TRNS", + "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_HOME", "KC_PGDN", "KC_END" + ] + ], + "config": { + "dynamic_keymap": { + "layer_count": 8 + }, + "eeprom": { + "wear_leveling": { + "backing_size": 8192 + } + }, + "features": { + "encoder_map": true, + "via": true, + "vial": true + } + }, + "encoders": [ + [{"ccw": "KC_VOLD", "cw": "KC_VOLU"}], + [{"ccw": "KC_TRNS", "cw": "KC_TRNS"}] + ] +} diff --git a/keyboards/mechwild/bb65/keymaps/vial/vial.json b/keyboards/mechwild/bb65/keymaps/vial/vial.json new file mode 100644 index 0000000000..a2463a31f8 --- /dev/null +++ b/keyboards/mechwild/bb65/keymaps/vial/vial.json @@ -0,0 +1,17 @@ +{ + "lighting": "qmk_rgblight", + "matrix": {"rows": 8, "cols": 9}, + "layouts": { + "labels": ["Split Enter", "Split Left Shift"], + "keymap": [ + [{"x":2.5,"c":"#777777"},"0,0",{"c":"#cccccc"},"0,1","0,2","0,3","0,4","0,5","0,6","0,7","0,8","5,8","5,7","5,6","5,5",{"c":"#aaaaaa","w":2},"5,4"], + [{"x":2.5,"w":1.5},"1,0",{"c":"#cccccc"},"1,1","1,2","1,3","1,4","1,5","1,6","1,7","1,8","6,8","6,7","6,6","6,5",{"w":1.5},"6,4"], + [{"x":2.5,"c":"#aaaaaa","w":1.75},"2,0",{"c":"#cccccc"},"2,1","2,2","2,3","2,4","2,5","2,6","2,7","2,8","7,0","6,0","6,1",{"c":"#777777","w":2.25},"6,3\n\n\n0,0",{"x":0.25,"c":"#aaaaaa"},"0,0\n\n\n\n\n\n\n\n\ne","0,1\n\n\n\n\n\n\n\n\ne"], + [{"w":1.25},"3,0\n\n\n1,1",{"c":"#cccccc"},"3,1\n\n\n1,1",{"x":0.25,"c":"#aaaaaa","w":2.25},"3,0\n\n\n1,0",{"c":"#cccccc"},"3,2","3,3","3,4","3,5","3,6","3,7","3,8","7,8","7,7","7,6",{"c":"#aaaaaa","w":1.75},"7,5",{"x":1.75},"7,3"], + [{"y":-0.75,"x":16.75,"c":"#777777"},"7,4"], + [{"y":-0.25,"x":2.5,"c":"#aaaaaa","w":1.25},"4,0",{"w":1.25},"4,1",{"w":1.25},"4,2",{"c":"#cccccc","w":6.25},"4,5",{"c":"#aaaaaa"},"4,3","4,4","4,6"], + [{"y":-0.75,"x":15.75,"c":"#777777"},"4,7","4,8","7,2"], + [{"y":0.25,"x":15.25,"c":"#cccccc"},"6,2\n\n\n0,1",{"c":"#777777","w":1.25},"6,3\n\n\n0,1"] + ] + } +}