Add Vial support to Keebio Sinc keyboard (#582)

* Add Vial support to Keebio Sinc keyboard

* Move Vial keymap to rev4 specifically

* Remove unnecessary layer
This commit is contained in:
LinuxSBC 2023-11-06 22:19:32 -06:00 committed by GitHub
parent e148204efa
commit 144e43d900
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 455 additions and 0 deletions

View file

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0x58, 0xFD, 0x5B, 0xA6, 0xBB, 0x81, 0x1A, 0x7B}
// Press Escape and Enter to unlock security-sensitive settings
#define VIAL_UNLOCK_COMBO_ROWS { 5, 8 }
#define VIAL_UNLOCK_COMBO_COLS { 2, 7 }

View file

@ -0,0 +1,31 @@
// Copyright 2023 Danny Nguyen (danny@keeb.io)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_all(
KC_MUTE, KC_ESC, 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_INS,
KC_F1, KC_F2, KC_GRV, 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_DEL, KC_BSPC, KC_HOME,
KC_F3, KC_F4, 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, KC_END,
KC_F5, KC_F6, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGUP,
KC_F7, KC_F8, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
KC_F9, KC_F10, KC_LCTL, KC_LALT, KC_LGUI, MO(1), KC_SPC, KC_SPC, MO(1), KC_SPC, KC_RALT, KC_RCTL, KC_RGUI, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
RGB_HUI, RGB_HUD, QK_GESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
RGB_SAI, RGB_SAD, RGB_TOG, RGB_MOD, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
RGB_VAI, RGB_VAD, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD), ENCODER_CCW_CW(KC_PGUP, KC_PGDN) },
[1] = { ENCODER_CCW_CW(RGB_MOD, RGB_RMOD), ENCODER_CCW_CW(KC_MNXT, KC_MPRV) }
};
#endif

View file

@ -0,0 +1,5 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
VIALRGB_ENABLE = yes
LTO_ENABLE = yes
ENCODER_MAP_ENABLE = yes

View file

@ -0,0 +1,409 @@
{
"name": "Sinc Rev. 4",
"vendorId": "0xCB10",
"productId": "0x4267",
"lighting": "vialrgb",
"matrix": {
"rows": 12,
"cols": 9
},
"layouts": {
"labels": [
"Macro Keys",
"Left Encoder",
"Right Encoder",
"ISO Enter",
"Split Left Shift",
"Split Backspace",
[
"Left Space",
"1.25u + 2.25u",
"2.25u + 1.25u",
"1.25u + 1u + 1.25u"
],
[
"Right Space",
"2.75u",
"1.25u + 1.5u"
],
[
"Right modifiers",
"3x 1u",
"2x 1.25u + .5u space"
],
[
"Right Shift",
"1.75u + 1u (up arrow)",
"2.75u"
]
],
"keymap":[
[
{
"x": 2
},
"0,0\n\n\n1,1\n\n\n\n\n\ne",
{
"d": true,
"x": -1
},
"0,0\n\n\n1,0",
"0,1\n\n\n1,1\n\n\n\n\n\ne",
{
"d": true,
"x": -1
},
"0,1\n\n\n1,0",
{
"x":16.25
},
"1,0\n\n\n2,1\n\n\n\n\n\ne",
{
"d": true,
"x": -1
},
"1,0\n\n\n2,0",
"1,1\n\n\n2,1\n\n\n\n\n\ne",
{
"d": true,
"x": -1
},
"1,1\n\n\n2,0"
],
[
{
"x": 2.5
},
"5,0\n\n\n0,1",
{
"d": true,
"x": -1
},
"5,0\n\n\n0,0",
{
"x": 1.25
},
"5,2",
{
"x": 0.25
},
"5,3",
"5,4",
"5,5",
"5,6",
{
"x": 0.25
},
"5,7",
"5,8",
{
"x": 1
},
"11,1",
"11,2",
{
"x": 0.25
},
"11,3",
"11,4",
"11,5",
"11,6",
{
"x": 0.25
},
"11,7",
"11,8"
],
[
{
"y": 0.25,
"x": 2.5
},
"0,0\n\n\n0,1",
{
"d": true,
"x": -1
},
"0,0\n\n\n0,0",
"0,1\n\n\n0,1",
{
"d": true,
"x": -1
},
"0,1\n\n\n0,0",
{
"x": 0.25
},
"0,2",
"0,3",
"0,4",
"0,5",
"0,6",
"0,7",
"0,8",
{
"x": 1
},
"6,0",
"6,1",
"6,2",
"6,3",
"6,4",
"6,5",
{
"w": 2
},
"6,7\n\n\n5,0",
"6,8",
{
"x": 1
},
"6,6\n\n\n5,1",
"6,7\n\n\n5,1"
],
[
{
"x": 2.5
},
"1,0\n\n\n0,1",
{
"d": true,
"x": -1
},
"1,0\n\n\n0,0",
"1,1\n\n\n0,1",
{
"d": true,
"x": -1
},
"1,1\n\n\n0,0",
{
"x": 0.25,
"w": 1.5
},
"1,2",
"1,3",
"1,4",
"1,5",
"1,6",
"1,7",
{
"x": 1
},
"7,0",
"7,1",
"7,2",
"7,3",
"7,4",
"7,5",
"7,6",
{
"w": 1.5
},
"7,7\n\n\n3,0",
"7,8",
{
"x": 1.75,
"w": 1.25,
"h": 2,
"w2": 1.5,
"h2": 1,
"x2": -0.25
},
"8,7\n\n\n3,1"
],
[
{
"x": 2.5
},
"2,0\n\n\n0,1",
{
"d": true,
"x": -1
},
"2,0\n\n\n0,0",
"2,1\n\n\n0,1",
{
"d": true,
"x": -1
},
"2,1\n\n\n0,0",
{
"x": 0.25,
"w": 1.75
},
"2,2",
"2,3",
"2,4",
"2,5",
"2,6",
"2,7",
{
"x": 1
},
"8,0",
"8,1",
"8,2",
"8,3",
"8,4",
"8,5",
{
"w": 2.25
},
"8,7\n\n\n3,0",
"8,8",
{
"x": 0.75
},
"8,6\n\n\n3,1"
],
[
{
"w": 1.25
},
"3,2\n\n\n4,1",
"3,3\n\n\n4,1",
{
"x": 0.25
},
"3,0\n\n\n0,1",
{
"d": true,
"x": -1
},
"3,0\n\n\n0,0",
"3,1\n\n\n0,1",
{
"d": true,
"x": -1
},
"3,1\n\n\n0,0",
{
"d": true,
"x": -1
},
"3,1\n\n\n0,1",
{
"x": 0.25,
"w": 2.25
},
"3,2\n\n\n4,0",
"3,4",
"3,5",
"3,6",
"3,7",
"3,8",
{
"x": 1
},
"9,0",
"9,1",
"9,2",
"9,3",
"9,4",
{
"w": 1.75
},
"9,6\n\n\n9,0",
"9,7\n\n\n9,0",
"9,8",
{
"x": 0.25,
"w": 2.75
},
"9,6\n\n\n9,1"
],
[
{
"x": 2.5
},
"4,0\n\n\n0,1",
{
"d": true,
"x": -1
},
"4,0\n\n\n0,0",
"4,1\n\n\n0,1",
{
"d": true,
"x": -1
},
"4,1\n\n\n0,0",
{
"x": 0.25,
"w": 1.25
},
"4,2",
{
"w": 1.25
},
"4,3",
{
"w": 1.25
},
"4,4",
{
"w": 1.25
},
"4,5\n\n\n6,0",
{
"w": 2.25
},
"4,7\n\n\n6,0",
{
"x": 1,
"w": 2.75
},
"10,1\n\n\n7,0",
"10,2\n\n\n8,0",
"10,3\n\n\n8,0",
"10,4\n\n\n8,0",
"10,6",
"10,7",
"10,8",
{
"x": 0.25,
"w": 1.25
},
"10,2\n\n\n8,1",
{
"w": 1.25
},
"10,3\n\n\n8,1",
{
"w": 0.5,
"d": true
},
"10,4\n\n\n8,1",
{
"x": 0.25,
"w": 1.25
},
"10,0\n\n\n7,1",
{
"w": 1.5
},
"10,1\n\n\n7,1",
{
"x": 0.25,
"w": 2.25
},
"4,5\n\n\n6,1",
{
"w": 1.25
},
"4,7\n\n\n6,1",
{
"x": 0.25,
"w": 1.25
},
"4,5\n\n\n6,2",
"4,6\n\n\n6,2",
{
"w": 1.25
},
"4,7\n\n\n6,2"
]
]
}
}