feat: Add Vial support for Ergodash (#309)

This commit is contained in:
Athul Cyriac Ajay 2022-12-26 04:07:53 +05:30 committed by GitHub
parent abeef33f44
commit 03acbc261d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 639 additions and 0 deletions

View file

@ -0,0 +1,37 @@
/*
This is the c configuration file for the keymap
Copyright 2012 Jun Wako <wakojun@gmail.com>
Copyright 2015 Jack Humbert
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 <http://www.gnu.org/licenses/>.
*/
#pragma once
#define VIAL_KEYBOARD_UID {0xD9, 0x2C, 0x2A, 0x55, 0xD1, 0x3A, 0xF7, 0xE3}
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 1 }
#define VIAL_TAP_DANCE_ENTRIES 4
/* Use I2C or Serial, not both */
#define USE_SERIAL
// #define USE_I2C
/* Select hand configuration */
#define MASTER_LEFT
// #define MASTER_RIGHT
// #define EE_HANDS

View file

@ -0,0 +1,155 @@
#include QMK_KEYBOARD_H
enum layer_names {
_QWERTY,
_LOWER,
_RAISE,
_ADJUST
};
enum custom_keycodes {
QWERTY = USER00,
LOWER,
RAISE,
ADJUST,
};
#define EISU LALT(KC_GRV)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Qwerty
* ,----------------------------------------------------------------------------------------------------------------------.
* | ESC | 1 | 2 | 3 | 4 | 5 | [ | | ] | 6 | 7 | 8 | 9 | 0 |Pscree|
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
* | ` | Q | W | E | R | T | - | | = | Y | U | I | O | P | \ |
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
* | Tab | A | S | D | F | G | Del | | Bksp | H | J | K | L | ; | " |
* |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------|
* | Shift| Z | X | C | V | B | Space| | Enter| N | M | , | . | / | Shift|
* |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------|
* | Ctrl | GUI | ALt | EISU |||||||| Lower| Space| Del |||||||| Bksp | Enter| Raise|||||||| Left | Down | Up | Right|
* ,----------------------------------------------------------------------------------------------------------------------.
*/
[_QWERTY] = LAYOUT(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LBRC, KC_RBRC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_PSCR,
KC_GRV, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_MINS, KC_EQL , KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_DEL , KC_BSPC, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_SPC , KC_ENT , KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
KC_LCTL, KC_LGUI, KC_LALT, EISU, LOWER, KC_SPC ,KC_DEL, KC_BSPC,KC_ENT , RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
),
/* Lower
* ,----------------------------------------------------------------------------------------------------------------------.
* | F11 | F1 | F2 | F3 | F4 | F5 | { | | } | F6 | F7 | F8 | F9 | F10 | F12 |
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
* | ~ | ! | @ | # | $ | % | _ | | + | ^ | & | * | ( | ) | | |
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
* | Tab | 1 | 2 | 3 | 4 | 5 | Del | | Bksp | H | J | K | L | : | " |
* |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------|
* | Shift| 6 | 7 | 8 | 9 | 0 | Space| | Enter| N | M | < | > | ? | Shift|
* |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------|
* | Ctrl | GUI | ALt | EISU |||||||| Lower| Space| Del |||||||| Bksp | Enter| Raise|||||||| Home |PageDn|PageUp| End |
* ,----------------------------------------------------------------------------------------------------------------------.
*/
[_LOWER] = LAYOUT(
KC_F11, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LCBR, KC_RCBR, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F12,
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_UNDS, KC_PLUS, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PIPE,
KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_DEL , KC_BSPC, KC_H, KC_J, KC_K, KC_L, KC_COLN, KC_DQT ,
KC_LSFT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_SPC , KC_ENT , KC_N, KC_M, KC_LT, KC_GT, KC_QUES, KC_RSFT,
KC_LCTL, KC_LGUI, KC_LALT, EISU, LOWER, KC_SPC ,KC_DEL, KC_BSPC,KC_ENT , RAISE, KC_HOME, KC_PGDN, KC_PGUP, KC_END
),
/* Raise
* ,----------------------------------------------------------------------------------------------------------------------.
* | F11 | F1 | F2 | F3 | F4 | F5 | { | | } | F6 | F7 | F8 | F9 | F10 | F12 |
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
* | ~ | ! | @ | # | $ | % | _ | | + | ^ | & | * | ( | ) | | |
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
* | Tab | 1 | 2 | 3 | 4 | 5 | Del | | Bksp | H | J | K | L | : | " |
* |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------|
* | Shift| 6 | 7 | 8 | 9 | 0 | Space| | Enter| N | M | < | > | ? | Shift|
* |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------|
* | Ctrl | GUI | ALt | EISU |||||||| Lower| Space| Del |||||||| Bksp | Enter| Raise|||||||| Home |PageDn|PageUp| End |
* ,----------------------------------------------------------------------------------------------------------------------.
*/
[_RAISE] = LAYOUT(
KC_F11, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LCBR, KC_RCBR, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F12,
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_UNDS, KC_PLUS, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PIPE,
KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_DEL , KC_BSPC, KC_H, KC_J, KC_K, KC_L, KC_COLN, KC_DQT ,
KC_LSFT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_SPC , KC_ENT , KC_N, KC_M, KC_LT, KC_GT, KC_QUES, KC_RSFT,
KC_LCTL, KC_LGUI, KC_LALT, EISU, LOWER, KC_SPC ,KC_DEL, KC_BSPC,KC_ENT , RAISE, KC_HOME, KC_PGDN, KC_PGUP, KC_END
),
/* Adjust
* ,----------------------------------------------------------------------------------------------------------------------.
* | | | | | | | | | | | | | | | |
* |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------|
* | | Reset|RGB ON| MODE| HUE-| HUE+| | | | SAT-| SAT+| VAL-| VAL+| | |
* |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------|
* | | | BL ON| BRTG| INC| DEC| | | | | | | | | |
* |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------|
* | | | | | | | | | | | | | | | |
* |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------|
* | | | | |||||||| | | |||||||| | | |||||||| | | | |
* ,----------------------------------------------------------------------------------------------------------------------.
*/
[_ADJUST] = LAYOUT(
_______, _______, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
_______, QK_BOOT , RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI,_______, _______, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, _______, _______,
_______, _______, BL_TOGG, BL_BRTG, BL_INC , BL_DEC ,_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,_______,_______, _______,_______, _______, _______, _______, _______, _______
)
};
#ifdef AUDIO_ENABLE
float tone_qwerty[][2] = SONG(QWERTY_SOUND);
#endif
void persistent_default_layer_set(uint16_t default_layer) {
eeconfig_update_default_layer(default_layer);
default_layer_set(default_layer);
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case QWERTY:
if (record->event.pressed) {
print("mode just switched to qwerty and this is a huge string\n");
set_single_persistent_default_layer(_QWERTY);
}
return false;
break;
case LOWER:
if (record->event.pressed) {
layer_on(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
} else {
layer_off(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;
break;
case RAISE:
if (record->event.pressed) {
layer_on(_RAISE);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
} else {
layer_off(_RAISE);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;
break;
case ADJUST:
if (record->event.pressed) {
layer_on(_ADJUST);
} else {
layer_off(_ADJUST);
}
return false;
break;
}
return true;
}

View file

@ -0,0 +1,8 @@
BACKLIGHT_ENABLE = yes
RGBLIGHT_ENABLE = yes
VIA_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes
QMK_SETTINGS = no
COMBO_ENABLE = no
KEY_OVERRIDE_ENABLE = no

View file

@ -0,0 +1,439 @@
{
"lighting": "qmk_backlight_rgblight",
"customKeycodes": [
{
"name": "BASE",
"title": "BASE Layer",
"shortName": "BASE"
},
{
"name": "LOWER",
"title": "Lower Layer",
"shortname": "LOWER"
},
{
"name": "RAISE",
"title": "Raise Layer",
"shortName": "RAISE"
},
{
"name": "ADJUST",
"title": "Adjust Layer",
"shortName": "ADJUST"
}
],
"matrix": {
"rows": 10,
"cols": 7
},
"layouts": {
"labels": [
[
"Thumb Keys",
"1+2",
"2+1",
"1+1"
]
],
"keymap": [
[
{
"x": 3
},
"0,3",
{
"x": 9.25
},
"5,3"
],
[
{
"y": -0.87,
"x": 2
},
"0,2",
{
"x": 1
},
"0,4",
{
"x": 7.25
},
"5,4",
{
"x": 1
},
"5,2"
],
[
{
"y": -0.8799999999999999,
"x": 5
},
"0,5",
{
"x": 5.25
},
"5,5"
],
[
{
"y": -0.87,
"c": "#aaaaaa"
},
"0,0",
{
"c": "#cccccc"
},
"0,1",
{
"x": 13.25
},
"5,1",
{
"c": "#aaaaaa"
},
"5,0"
],
[
{
"y": -0.6299999999999999,
"x": 6,
"c": "#cccccc"
},
"0,6",
{
"x": 3.25
},
"5,6"
],
[
{
"y": -0.75,
"x": 3
},
"1,3",
{
"x": 9.25
},
"6,3"
],
[
{
"y": -0.8700000000000001,
"x": 2
},
"1,2",
{
"x": 1
},
"1,4",
{
"x": 7.25
},
"6,4",
{
"x": 1
},
"6,2"
],
[
{
"y": -0.8799999999999999,
"x": 5
},
"1,5",
{
"x": 5.25
},
"6,5"
],
[
{
"y": -0.8700000000000001,
"c": "#aaaaaa"
},
"1,0",
{
"c": "#cccccc"
},
"1,1",
{
"x": 13.25
},
"6,1",
{
"c": "#aaaaaa"
},
"6,0"
],
[
{
"y": -0.6299999999999999,
"x": 6,
"c": "#cccccc"
},
"1,6",
{
"x": 3.25
},
"6,6"
],
[
{
"y": -0.75,
"x": 3
},
"2,3",
{
"x": 9.25
},
"7,3"
],
[
{
"y": -0.8700000000000001,
"x": 2
},
"2,2",
{
"x": 1
},
"2,4",
{
"x": 7.25
},
"7,4",
{
"x": 1
},
"7,2"
],
[
{
"y": -0.8799999999999999,
"x": 5
},
"2,5",
{
"x": 5.25
},
"7,5"
],
[
{
"y": -0.8700000000000001,
"c": "#aaaaaa"
},
"2,0",
{
"c": "#cccccc"
},
"2,1",
{
"x": 13.25
},
"7,1",
{
"c": "#aaaaaa"
},
"7,0"
],
[
{
"y": -0.6299999999999999,
"x": 6,
"c": "#cccccc"
},
"2,6",
{
"x": 3.25
},
"7,6"
],
[
{
"y": -0.75,
"x": 3
},
"3,3",
{
"x": 9.25
},
"8,3"
],
[
{
"y": -0.8700000000000001,
"x": 2
},
"3,2",
{
"x": 1
},
"3,4",
{
"x": 7.25
},
"8,4",
{
"x": 1
},
"8,2"
],
[
{
"y": -0.8799999999999999,
"x": 5
},
"3,5",
{
"x": 5.25
},
"8,5"
],
[
{
"y": -0.8700000000000001,
"c": "#aaaaaa"
},
"3,0",
{
"c": "#cccccc"
},
"3,1",
{
"x": 13.25
},
"8,1",
{
"c": "#aaaaaa"
},
"8,0"
],
[
{
"y": -0.3799999999999999,
"x": 3
},
"4,3",
{
"x": 9.25
},
"9,3"
],
[
{
"y": -0.8700000000000001,
"x": 2
},
"4,2",
{
"x": 11.25
},
"9,2"
],
[
{
"y": -0.75
},
"4,0",
"4,1",
{
"x": 13.25
},
"9,1",
"9,0"
],
[
{
"rx": 12.25,
"ry": 3.25,
"y": 1,
"x": -6.25,
"h": 2
},
"4,5\n\n\n0,0",
"3,6\n\n\n0,0",
{
"x": 1.25
},
"8,6\n\n\n0,0",
{
"h": 2
},
"9,5\n\n\n0,0"
],
[
{
"x": -7.25,
"c": "#777777"
},
"4,4",
{
"x": 1,
"c": "#aaaaaa"
},
"4,6\n\n\n0,0",
{
"x": 1.25
},
"9,6\n\n\n0,0",
{
"x": 1,
"c": "#777777"
},
"9,4"
],
[
{
"y": 0.5,
"x": -6.25,
"c": "#aaaaaa"
},
"3,6\n\n\n0,1",
{
"h": 2
},
"4,6\n\n\n0,1",
{
"x": 1.25,
"h": 2
},
"9,6\n\n\n0,1",
"8,6\n\n\n0,1"
],
[
{
"x": -6.25
},
"4,5\n\n\n0,1",
{
"x": 3.25
},
"9,5\n\n\n0,1"
],
[
{
"y": 0.5,
"x": -6.25,
"h": 2
},
"4,5\n\n\n0,2",
{
"h": 2
},
"4,6\n\n\n0,2",
{
"x": 1.25,
"h": 2
},
"9,6\n\n\n0,2",
{
"h": 2
},
"9,5\n\n\n0,2"
]
]
}
}