Skip to content

Commit

Permalink
Add support for foostan Cornelius (vial-kb#590)
Browse files Browse the repository at this point in the history
* add vial support for foostan cornelius

* changed unlock sequence to enter key

* Update keyboards/foostan/cornelius/keymaps/vial/keymap.c

Co-authored-by: Less/Rikki <[email protected]>

* Update keyboards/foostan/cornelius/keymaps/vial/vial.json

Co-authored-by: Less/Rikki <[email protected]>

* removed almost empty readme

---------

Co-authored-by: Less/Rikki <[email protected]>
  • Loading branch information
ebastler and lesshonor authored Nov 23, 2023
1 parent a84b175 commit b1f7f46
Show file tree
Hide file tree
Showing 4 changed files with 91 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"]
]
}
}

0 comments on commit b1f7f46

Please sign in to comment.