Adding Sneakbox M4/AlicecloneRGB to Vial (#224)

* Create config.h

* Add files via upload
This commit is contained in:
chance 2022-08-18 12:06:55 -04:00 committed by GitHub
parent a05537e23f
commit 955da774eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 430 additions and 0 deletions

View File

@ -0,0 +1,15 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0xCD, 0x6D, 0xFB, 0xBE, 0x43, 0x43, 0xD2, 0x7E}
#define VIAL_UNLOCK_COMBO_ROWS { 0, 9 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 3 }
#define DYNAMIC_KEYMAP_LAYER_COUNT 4
/* Space-saving measures */
#define LAYER_STATE_8BIT
#undef LOCKING_SUPPORT_ENABLE
#undef LOCKING_RESYNC_ENABLE

View File

@ -0,0 +1,54 @@
/*
Copyright 2021 Bryan Ong
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/>.
*/
#include QMK_KEYBOARD_H
// Defines names for use in layer keycodes and the keymap
enum layer_names {
_BASE,
_FN,
_L3,
_L4
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT_alice_split_bs(
KC_ESC, 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_BSPC, KC_BSPC,
KC_PGUP, 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_PGDN, 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_ENT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_LGUI,
KC_LCTL, KC_LALT, KC_SPC, LT(_FN, KC_SPC), KC_SPC, KC_RALT, KC_RCTL),
[_FN] = LAYOUT_alice_split_bs(
KC_TRNS, 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_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_RMOD, RGB_MOD, RGB_TOG,
QK_BOOT, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAD, RGB_VAI, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SAD, RGB_SAI, KC_TRNS, RGB_HUI,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
[_L3] = LAYOUT_alice_split_bs(
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_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),
[_L4] = LAYOUT_alice_split_bs(
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_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),
};

View File

@ -0,0 +1,7 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes
KEY_OVERRIDE_ENABLE = no
MAGIC_ENABLE = no
TAP_DANCE_ENABLE = no

View File

@ -0,0 +1,354 @@
{
"vendorId": "0x5342",
"productId": "0x0006",
"name": "Sneakbox Alice Clone",
"url": "https://sneakbox.design",
"maintainer": "mujimanic",
"matrix": { "rows": 10, "cols": 8 },
"lighting": "qmk_rgblight",
"layouts": {
"keymap":
[
[
{
"y": 0.0185,
"x": 0.4445,
"c": "#777777"
},
"2,0",
{
"x": 2.1806,
"c": "#cccccc"
},
"0,2",
{
"x": 8.4812,
"c": "#cccccc"
},
"1,4"
],
[
{
"y": -0.8885,
"x": 15.08,
"c": "#cccccc"
},
"1,6",
"1,7"
],
[
{
"y": -0.9996,
"x": 14.0823,
"c": "#cccccc"
},
"1,5"
],
[
{
"y": -0.9998,
"x": 2.6484,
"c": "#cccccc"
},
"0,1"
],
[
{
"y": -0.9999,
"x": 1.6506,
"c": "#cccccc"
},
"0,0"
],
[
{
"y": -0.11430000000000007,
"x": 0.2262,
"c": "#cccccc"
},
"4,0"
],
[
{
"y": -0.9432,
"x": 12.8254,
"c": "#cccccc"
},
"3,4"
],
[
{
"y": -0.9445999999999999,
"x": 13.8015,
"c": "#cccccc"
},
"3,5",
{
"x": 0.9962,
"w": 1.5,
"c": "#cccccc"
},
"3,7"
],
[
{
"y": -0.9999,
"x": 14.7998,
"c": "#cccccc"
},
"3,6"
],
[
{
"y": -0.9999,
"x": 2.9292,
"c": "#cccccc"
},
"2,2"
],
[
{
"y": -0.9997,
"x": 1.4317,
"w": 1.5,
"c": "#cccccc"
},
"2,1"
],
[
{
"y": -0.11439999999999984,
"c": "#cccccc"
},
"6,0"
],
[
{
"y": -0.8881000000000001,
"x": 15.2718,
"w": 2.25,
"c": "#777777"
},
"5,6"
],
[
{
"y": -0.9998,
"x": 1.2183,
"w": 1.75,
"c": "#cccccc"
},
"4,1",
{
"x": 10.308700000000002,
"c": "#cccccc"
},
"5,4"
],
[
{
"y": -0.9999000000000002,
"x": 2.9659,
"c": "#cccccc"
},
"4,2",
{
"x": 10.3093,
"c": "#cccccc"
},
"5,5"
],
[
{
"y": -0.0019999999999997797,
"x": 3.2462,
"c": "#cccccc"
},
"6,2"
],
[
{
"y": -0.9999000000000002,
"x": 12.9967,
"c": "#cccccc"
},
"7,4",
{
"x": -0.0024999999999995026,
"c": "#cccccc"
},
"7,5",
{
"x": -0.0024999999999995026,
"w": 1.75,
"c": "#cccccc"
},
"7,6",
{
"x": -0.002600000000001046,
"c": "#cccccc"
},
"7,7"
],
[
{
"y": -0.9996,
"x": 0.9996,
"w": 2.25,
"c": "#aaaaaa"
},
"6,1"
],
[
{
"y": -0.002500000000000391,
"x": 1.0005,
"w": 1.5,
"c": "#aaaaaa"
},
"8,1"
],
[
{
"y": -0.9973000000000001,
"x": 16.0468,
"w": 1.5,
"c": "#aaaaaa"
},
"9,7"
],
[
{
"r": 12,
"rx": 3.9386,
"ry": 4.109,
"w": 1.5,
"c": "#aaaaaa"
},
"8,3"
],
[
{
"rx": 4.6991,
"ry": 0.2258,
"y": -0.093,
"x": 0.11490000000000045,
"c": "#cccccc"
},
"0,3",
"0,4",
"0,5",
"0,6"
],
[
{
"y": -0.0027999999999999137,
"x": -0.4490999999999996,
"c": "#cccccc"
},
"2,3",
"2,4",
"2,5",
"2,6"
],
[
{
"x": -0.1990999999999996,
"c": "#cccccc"
},
"4,3",
"4,4",
"4,5",
"4,6"
],
[
{
"x": 0.3009000000000004,
"c": "#cccccc"
},
"6,3",
"6,4",
"6,5",
"6,6"
],
[
{
"rx": 5.4334,
"ry": 4.3492,
"w": 2.25,
"c": "#cccccc"
},
"8,5"
],
[
{
"rx": 7.6342,
"ry": 4.817,
"c": "#cccccc"
},
"8,6"
],
[
{
"r": -12,
"rx": 9.0102,
"ry": 0.8597,
"c": "#cccccc"
},
"1,0",
"1,1",
"1,2",
"1,3"
],
[
{
"y": 0.00029999999999996696,
"x": -0.5001999999999995,
"c": "#cccccc"
},
"3,0",
"3,1",
"3,2",
"3,3"
],
[
{
"x": -0.25019999999999953,
"c": "#cccccc"
},
"5,0",
"5,1",
"5,2",
"5,3"
],
[
{
"x": -0.7501999999999995,
"c": "#cccccc"
},
"7,0",
"7,1",
"7,2",
"7,3"
],
[
{
"rx": 9.1085,
"ry": 4.9223,
"w": 2.75,
"c": "#cccccc"
},
"9,1"
],
[
{
"rx": 11.8366,
"ry": 4.4209,
"w": 1.5,
"c": "#aaaaaa"
},
"9,3"
]
]
}
}