Skip to content

Commit

Permalink
Merge branch 'vial' of https://github.com/vial-kb/vial-qmk into vial-…
Browse files Browse the repository at this point in the history
…blutooth-commit
  • Loading branch information
adophoxia committed Nov 23, 2023
2 parents 62e86b8 + b1f7f46 commit e61f094
Show file tree
Hide file tree
Showing 12 changed files with 520 additions and 0 deletions.
8 changes: 8 additions & 0 deletions keyboards/foostan/cornelius/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */

#pragma once

#define VIAL_KEYBOARD_UID {0xF6, 0x6F, 0x8F, 0xDF, 0x63, 0xDF, 0x04, 0x7B}

#define VIAL_UNLOCK_COMBO_ROWS { 0, 3 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 6 }
39 changes: 39 additions & 0 deletions keyboards/foostan/cornelius/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* Copyright 2020 foostan
*
* 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

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, 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_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
XXXXXXX, KC_LCTL, KC_LGUI, KC_LALT, TL_LOWR, KC_SPC, KC_ENT, TL_UPPR, KC_RALT, KC_RGUI, KC_RCTL, XXXXXXX
),

[1] = LAYOUT(
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP,KC_RIGHT, XXXXXXX, XXXXXXX,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),

[2] = LAYOUT(
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_LCBR, KC_RCBR, KC_PIPE, KC_GRV,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PLUS, KC_LBRC, KC_RBRC, KC_BSLS, KC_TILD,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
4 changes: 4 additions & 0 deletions keyboards/foostan/cornelius/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes

LTO_ENABLE = yes
40 changes: 40 additions & 0 deletions keyboards/foostan/cornelius/keymaps/vial/vial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"lighting": "none",
"matrix": {"rows": 4, "cols": 12},
"layouts": {
"keymap": [
[{"r": 10, "rx": 1.5, "x": 2.5}, "0,3"],
[{"y": -0.875, "x": 3.5}, "0,4"],
[{"y": -0.875, "x": 1.5}, "0,2", {"x": 2}, "0,5"],
[{"y": -0.625, "x": -0.5}, "0,0", "0,1"],
[{"y": -0.625, "x": 2.5}, "1,3"],
[{"y": -0.875, "x": 3.5}, "1,4"],
[{"y": -0.875, "x": 1.5}, "1,2", {"x": 2}, "1,5"],
[{"y": -0.625, "x": -0.5}, "1,0", "1,1"],
[{"y": -0.625, "x": 2.5}, "2,3"],
[{"y": -0.875, "x": 3.5}, "2,4"],
[{"y": -0.875, "x": 1.5}, "2,2", {"x": 2}, "2,5"],
[{"y": -0.625, "x": -0.5}, "2,0", "2,1"],
[{"y": -0.375, "x": 1.5}, "3,2", {"x": 0.5}, "3,3"],
[{"y": -0.625, "x": -0.5}, "3,0", "3,1"],
[{"r": 25, "y": -2.515, "x": 4.97}, "3,4"],
[{"r": 40, "y": -2.6, "x": 6.55}, "3,5"],
[{"r": -40, "rx": 13.25, "y": 0.51, "x": -7.55}, "3,6"],
[{"r": -25, "y": 0.6, "x": -5.97}, "3,7"],
[{"r": -10, "y": -3.11, "x": -3.5}, "0,8"],
[{"y": -0.875, "x": -4.5}, "0,7"],
[{"y": -0.875, "x": -5.5}, "0,6", {"x": 2}, "0,9"],
[{"y": -0.625, "x": -1.5}, "0,10", "0,11"],
[{"y": -0.625, "x": -3.5}, "1,8"],
[{"y": -0.875, "x": -4.5}, "1,7"],
[{"y": -0.875, "x": -5.5}, "1,6", {"x": 2}, "1,9"],
[{"y": -0.625, "x": -1.5}, "1,10", "1,11"],
[{"y": -0.625, "x": -3.5}, "2,8"],
[{"y": -0.875, "x": -4.5}, "2,7"],
[{"y": -0.875, "x": -5.5}, "2,6", {"x": 2}, "2,9"],
[{"y": -0.625, "x": -1.5}, "2,10", "2,11"],
[{"y": -0.375, "x": -4}, "3,8", {"x": 0.5}, "3,9"],
[{"y": -0.625, "x": -1.5}, "3,10", "3,11"]
]
}
}
8 changes: 8 additions & 0 deletions keyboards/inland/mk47/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */

# pragma once

#define VIAL_KEYBOARD_UID {0x1C, 0x2F, 0x21, 0xB8, 0xA9, 0x42, 0xD9, 0xD8}

#define VIAL_UNLOCK_COMBO_ROWS { 0,1 }
#define VIAL_UNLOCK_COMBO_COLS { 0,11 }
41 changes: 41 additions & 0 deletions keyboards/inland/mk47/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/* Copyright (C) 2023 jonylee@hfd
*
* 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

// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT(
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
KC_LCTL, MO(2), KC_LALT, KC_DEL, KC_PGDN, KC_SPC, KC_PGUP, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),

[1] = LAYOUT(
KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, RGB_MOD,
RGB_HUI, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MSEL, KC_MUTE, KC_MPRV, KC_MPLY, KC_MNXT, RGB_VAI, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SPD, RGB_VAD, RGB_SPI),

[2] = LAYOUT(
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_CAPS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_TRNS,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
KC_LCTL, KC_NO, KC_LALT, KC_DEL, KC_PGDN, KC_SPC, KC_PGUP, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT)
};
// clang-format on

4 changes: 4 additions & 0 deletions keyboards/inland/mk47/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes

VIALRGB_ENABLE = yes
96 changes: 96 additions & 0 deletions keyboards/inland/mk47/keymaps/vial/vial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"lighting": "vialrgb",
"matrix": { "rows": 4, "cols": 12 },
"layouts": {
"keymap":[
[
{
"c": "#777777"
},
"0,0",
{
"c": "#cccccc"
},
"0,1",
"0,2",
"0,3",
"0,4",
"0,5",
"0,6",
"0,7",
"0,8",
"0,9",
"0,10",
{
"c": "#aaaaaa"
},
"0,11"
],
[
"1,0",
{
"c": "#cccccc"
},
"1,1",
"1,2",
"1,3",
"1,4",
"1,5",
"1,6",
"1,7",
"1,8",
"1,9",
"1,10",
{
"c": "#777777"
},
"1,11"
],
[
{
"c": "#aaaaaa"
},
"2,0",
{
"c": "#cccccc"
},
"2,1",
"2,2",
"2,3",
"2,4",
"2,5",
"2,6",
"2,7",
"2,8",
"2,9",
{
"c": "#777777"
},
"2,10",
{
"c": "#aaaaaa"
},
"2,11"
],
[
"3,0",
"3,1",
"3,2",
"3,3",
"3,4",
{
"w": 2
},
"3,5",
"3,7",
"3,8",
{
"c": "#777777"
},
"3,9",
"3,10",
"3,11"
]
]
}
}
82 changes: 82 additions & 0 deletions keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/* Copyright 2021 bdtc123
*
* 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/>.
*/
/* SPDX-License-Identifier: GPL-2.0-or-later */

#pragma once

// Vial settings
#define VIAL_KEYBOARD_UID {0x1E, 0x4C, 0xE6, 0x17, 0xCB, 0x4A, 0x21, 0x14}

// unlock keys unlock using ESC and Q
#define VIAL_UNLOCK_COMBO_ROWS {0, 1}
#define VIAL_UNLOCK_COMBO_COLS {0, 1}

// tweaks to firmware size
#define VIAL_TAP_DANCE_ENTRIES 4
#define VIAL_COMBO_ENTRIES 2
#define VIAL_KEY_OVERRIDE_ENTRIES 2

#define NO_ACTION_TAPPING
#define NO_ACTION_ONESHOT
#define VIALRGB_NO_DIRECT

//prior to compiling commenting out the undef lighting animations will add them to the firmware, final size of the firmware will be affected

#undef ENABLE_RGB_MATRIX_ALPHAS_MODS
#undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
#undef ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
#undef ENABLE_RGB_MATRIX_BREATHING
#undef ENABLE_RGB_MATRIX_BAND_SAT
#undef ENABLE_RGB_MATRIX_BAND_VAL
#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
#undef ENABLE_RGB_MATRIX_CYCLE_ALL
#undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
#undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
//#undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN
#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
#undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
#undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL
#undef ENABLE_RGB_MATRIX_DUAL_BEACON
#undef ENABLE_RGB_MATRIX_RAINBOW_BEACON
#undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
#undef ENABLE_RGB_MATRIX_RAINDROPS
#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
#undef ENABLE_RGB_MATRIX_HUE_BREATHING
#undef ENABLE_RGB_MATRIX_HUE_PENDULUM
#undef ENABLE_RGB_MATRIX_HUE_WAVE
#undef ENABLE_RGB_MATRIX_PIXEL_FRACTAL
#undef ENABLE_RGB_MATRIX_PIXEL_FLOW
#undef ENABLE_RGB_MATRIX_PIXEL_RAIN

//#undef ENABLE_RGB_MATRIX_TYPING_HEATMAP
#undef ENABLE_RGB_MATRIX_DIGITAL_RAIN

#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
#undef ENABLE_RGB_MATRIX_SPLASH
#undef ENABLE_RGB_MATRIX_MULTISPLASH
#undef ENABLE_RGB_MATRIX_SOLID_SPLASH
#undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
35 changes: 35 additions & 0 deletions keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* Copyright 2021 bdtc123
*
* 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

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_60_ansi(
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,
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_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL
),
[1] = LAYOUT_60_ansi(
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, QK_BOOT,
_______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______
),

};
14 changes: 14 additions & 0 deletions keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Build Options
# change yes to no to disable
#
LTO_ENABLE = yes
VIA_ENABLE = yes
VIAL_ENABLE = yes

COMBO_ENABLE = yes
TAP_DANCE_ENABLE = yes
QMK_SETTINGS = yes
KEY_OVERRIDE_ENABLE = yes

MOUSEKEY_ENABLE = no # Mouse keys
VIALRGB_ENABLE = yes # Enable Vial GUI
Loading

0 comments on commit e61f094

Please sign in to comment.