add support for kyria keyboard (#441)
* add support for kyria keyboard * move into rev2 folder * clean up rules.mk * more clean up
This commit is contained in:
parent
6bea951a12
commit
1222eb2d7b
17
keyboards/splitkb/kyria/rev2/keymaps/vial/config.h
Normal file
17
keyboards/splitkb/kyria/rev2/keymaps/vial/config.h
Normal file
@ -0,0 +1,17 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
#define VIAL_KEYBOARD_UID {0x20, 0x43, 0x8B, 0x3D, 0x4E, 0x21, 0xFD, 0x07}
|
||||
|
||||
/* #define DYNAMIC_KEYMAP_LAYER_COUNT 3 */
|
||||
|
||||
#undef LOCKING_SUPPORT_ENABLE
|
||||
#undef LOCKING_RESYNC_ENABLE
|
||||
|
||||
#define NO_ACTION_ONESHOT
|
||||
#define NO_MUSIC_MODE
|
||||
#define LAYER_STATE_8BIT
|
||||
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 3 }
|
24
keyboards/splitkb/kyria/rev2/keymaps/vial/keymap.c
Normal file
24
keyboards/splitkb/kyria/rev2/keymaps/vial/keymap.c
Normal file
@ -0,0 +1,24 @@
|
||||
// Copyright 2021 Your Name (@nosarthur)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(KC_ESC, KC_Q, KC_D, KC_R, KC_W, KC_B, KC_J, KC_F, KC_U, KC_P, KC_Q, KC_BSPC, KC_LGUI, KC_A, KC_S, KC_H, KC_T, KC_G, KC_Y, KC_N, KC_E, KC_O, KC_I, KC_QUOT, KC_TAB, KC_Z, KC_X, KC_M, KC_C, KC_V, KC_BSLS, TT(2), KC_LBRC, KC_RBRC, KC_K, KC_L, KC_COMM, KC_DOT, KC_SLSH, KC_GRV, KC_LCTL, KC_LALT, KC_SPC, KC_LSPO, TT(1), TT(1), KC_RSPC, KC_ENT, KC_MINS, KC_EQL),
|
||||
[1] = LAYOUT(KC_TRNS, KC_NO, KC_7, KC_8, KC_9, KC_NO, KC_NO, KC_NO, KC_UP, KC_PGUP, KC_PSLS, KC_TRNS, KC_TRNS, KC_0, KC_4, KC_5, KC_6, KC_PDOT, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_PAST, KC_PPLS, KC_TRNS, KC_NO, KC_1, KC_2, KC_3, KC_PCMM, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL, KC_HOME, KC_END, KC_PGDN, KC_EXLM, KC_PMNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
[2] = LAYOUT(KC_NO, KC_NO, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_MPLY, KC_VOLU, KC_BRIU, KC_NO, KC_MUTE, KC_NO, KC_NO, KC_F5, KC_F6, KC_F7, KC_F8, KC_NO, KC_MSTP, KC_VOLD, KC_BRID, KC_NO, KC_NO, KC_NO, KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO),
|
||||
[3] = LAYOUT(KC_NO, KC_NO, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_MPLY, KC_VOLU, KC_BRIU, KC_NO, KC_MUTE, KC_NO, KC_NO, KC_F5, KC_F6, KC_F7, KC_F8, KC_NO, KC_MSTP, KC_VOLD, KC_BRID, KC_NO, KC_NO, KC_NO, KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO)
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
||||
[0] = { ENCODER_CCW_CW(KC_BRIU, KC_BRID), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[1] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(RGB_SAD, RGB_SAI) },
|
||||
[2] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI), ENCODER_CCW_CW(RGB_SPD, RGB_SPI) },
|
||||
[3] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD), ENCODER_CCW_CW(KC_RIGHT, KC_LEFT) },
|
||||
// Encoder 1 Encoder 2
|
||||
};
|
||||
#endif
|
||||
|
22
keyboards/splitkb/kyria/rev2/keymaps/vial/rules.mk
Normal file
22
keyboards/splitkb/kyria/rev2/keymaps/vial/rules.mk
Normal file
@ -0,0 +1,22 @@
|
||||
# Bootloader selection
|
||||
# BOOTLOADER = caterina
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
ENCODER_MAP_ENABLE = yes
|
||||
OLED_ENABLE = no
|
||||
|
||||
AUTO_SHIFT_ENABLE = yes
|
||||
COMBO_ENABLE = yes
|
||||
TAP_DANCE_ENABLE = no
|
||||
|
||||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
||||
|
||||
QMK_SETTINGS = yes
|
||||
KEY_OVERRIDE_ENABLE = no
|
||||
SPACE_CADET_ENABLE = no
|
||||
GRAVE_ESC_ENABLE = no
|
||||
MAGIC_ENABLE = no
|
||||
AVR_USE_MINIMAL_PRINTF = yes
|
341
keyboards/splitkb/kyria/rev2/keymaps/vial/vial.json
Normal file
341
keyboards/splitkb/kyria/rev2/keymaps/vial/vial.json
Normal file
@ -0,0 +1,341 @@
|
||||
{
|
||||
"name": "Kyria rev2.1",
|
||||
"matrix": {"rows": 8, "cols": 8},
|
||||
"layouts": {
|
||||
"labels": [
|
||||
"Far Left 2U",
|
||||
"Mid Left 2U",
|
||||
"Mid Right 2U",
|
||||
"Far Right 2U"
|
||||
],
|
||||
"keymap":
|
||||
[
|
||||
[
|
||||
{
|
||||
"y": 0.25,
|
||||
"x": 3
|
||||
},
|
||||
"0,4",
|
||||
{
|
||||
"x": 9
|
||||
},
|
||||
"4,4"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.75,
|
||||
"x": 2
|
||||
},
|
||||
"0,5",
|
||||
{
|
||||
"x": 1
|
||||
},
|
||||
"0,3",
|
||||
{
|
||||
"x": 7
|
||||
},
|
||||
"4,3",
|
||||
{
|
||||
"x": 1
|
||||
},
|
||||
"4,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.875,
|
||||
"x": 5
|
||||
},
|
||||
"0,2",
|
||||
{
|
||||
"x": 5
|
||||
},
|
||||
"4,2"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.625,
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"0,7",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"0,6",
|
||||
{
|
||||
"x": 13
|
||||
},
|
||||
"4,6",
|
||||
{
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"4,7"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.75,
|
||||
"x": 3,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"1,4",
|
||||
{
|
||||
"x": 9
|
||||
},
|
||||
"5,4"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.75,
|
||||
"x": 2
|
||||
},
|
||||
"1,5",
|
||||
{
|
||||
"x": 1
|
||||
},
|
||||
"1,3",
|
||||
{
|
||||
"x": 7
|
||||
},
|
||||
"5,3",
|
||||
{
|
||||
"x": 1
|
||||
},
|
||||
"5,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.875,
|
||||
"x": 5
|
||||
},
|
||||
"1,2",
|
||||
{
|
||||
"x": 5
|
||||
},
|
||||
"5,2"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.625,
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"1,7",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"1,6",
|
||||
{
|
||||
"x": 13
|
||||
},
|
||||
"5,6",
|
||||
{
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"5,7"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.75,
|
||||
"x": 3,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"2,4",
|
||||
{
|
||||
"x": 9
|
||||
},
|
||||
"6,4"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.75,
|
||||
"x": 2
|
||||
},
|
||||
"2,5",
|
||||
{
|
||||
"x": 1
|
||||
},
|
||||
"2,3",
|
||||
{
|
||||
"x": 7
|
||||
},
|
||||
"6,3",
|
||||
{
|
||||
"x": 1
|
||||
},
|
||||
"6,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.875,
|
||||
"x": 5
|
||||
},
|
||||
"2,2",
|
||||
{
|
||||
"x": 5
|
||||
},
|
||||
"6,2"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.625,
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"2,7",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"2,6",
|
||||
{
|
||||
"x": 13
|
||||
},
|
||||
"6,6",
|
||||
{
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"6,7"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.5,
|
||||
"x": 2.5
|
||||
},
|
||||
"3,5",
|
||||
{
|
||||
"x": 10
|
||||
},
|
||||
"7,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 2
|
||||
},
|
||||
"0,0\n\n\n\n\n\n\n\n\ne",
|
||||
"0,1\n\n\n\n\n\n\n\n\ne",
|
||||
{
|
||||
"x": 9
|
||||
},
|
||||
"1,0\n\n\n\n\n\n\n\n\ne",
|
||||
"1,1\n\n\n\n\n\n\n\n\ne"
|
||||
],
|
||||
[
|
||||
{
|
||||
"rx": 4,
|
||||
"ry": 8.175,
|
||||
"y": -4.675,
|
||||
"x": -0.5
|
||||
},
|
||||
"3,3"
|
||||
],
|
||||
[
|
||||
{
|
||||
"rx": 13,
|
||||
"y": -4.675,
|
||||
"x": -0.5
|
||||
},
|
||||
"7,3"
|
||||
],
|
||||
[
|
||||
{
|
||||
"r": 15,
|
||||
"rx": 4,
|
||||
"y": -4.675,
|
||||
"x": -0.5
|
||||
},
|
||||
"3,2"
|
||||
],
|
||||
[
|
||||
{
|
||||
"r": 30,
|
||||
"y": -2,
|
||||
"x": -0.5
|
||||
},
|
||||
"2,1\n\n\n0,0"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": -0.5
|
||||
},
|
||||
"3,1\n\n\n0,0"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.5,
|
||||
"x": -1,
|
||||
"h": 2
|
||||
},
|
||||
"3,1\n\n\n0,1"
|
||||
],
|
||||
[
|
||||
{
|
||||
"r": 45,
|
||||
"y": -3.5,
|
||||
"x": -0.5
|
||||
},
|
||||
"2,0\n\n\n1,0"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": -0.5
|
||||
},
|
||||
"3,0\n\n\n1,0"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.25,
|
||||
"h": 2
|
||||
},
|
||||
"3,0\n\n\n1,1"
|
||||
],
|
||||
[
|
||||
{
|
||||
"r": -45,
|
||||
"rx": 13,
|
||||
"y": -5.675,
|
||||
"x": -0.5
|
||||
},
|
||||
"6,0\n\n\n2,0"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": -0.5
|
||||
},
|
||||
"7,0\n\n\n2,0"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.25,
|
||||
"x": -1,
|
||||
"h": 2
|
||||
},
|
||||
"7,0\n\n\n2,1"
|
||||
],
|
||||
[
|
||||
{
|
||||
"r": -30,
|
||||
"y": -3.25,
|
||||
"x": -0.5
|
||||
},
|
||||
"6,1\n\n\n3,0"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": -0.5
|
||||
},
|
||||
"7,1\n\n\n3,0"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.5,
|
||||
"h": 2
|
||||
},
|
||||
"7,1\n\n\n3,1"
|
||||
],
|
||||
[
|
||||
{
|
||||
"r": -15,
|
||||
"y": -2.5,
|
||||
"x": -0.5
|
||||
},
|
||||
"7,2"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user