diff options
| author | Nick Brassel <nick@tzarc.org> | 2023-12-21 09:02:22 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-21 09:02:22 +1100 |
| commit | 3afa2a9439a74c4f4d906dcb1dfa975f13fc6763 (patch) | |
| tree | 19304566c58974c94d026c07bb2ddebc16de094a | |
| parent | c8728880de198f5797463efbbba3eba7f1e4444a (diff) | |
[Keymap Removal] Restore mechboards mb_via keymaps. (#22723)
| -rw-r--r-- | keyboards/crkbd/keymaps/mb_via/config.h | 26 | ||||
| -rw-r--r-- | keyboards/crkbd/keymaps/mb_via/keymap.c | 71 | ||||
| -rw-r--r-- | keyboards/crkbd/keymaps/mb_via/readme.md | 12 | ||||
| -rw-r--r-- | keyboards/crkbd/keymaps/mb_via/rules.mk | 3 | ||||
| -rw-r--r-- | keyboards/lily58/keymaps/mb_via/config.h | 32 | ||||
| -rw-r--r-- | keyboards/lily58/keymaps/mb_via/keymap.c | 121 | ||||
| -rw-r--r-- | keyboards/lily58/keymaps/mb_via/rules.mk | 4 |
7 files changed, 269 insertions, 0 deletions
diff --git a/keyboards/crkbd/keymaps/mb_via/config.h b/keyboards/crkbd/keymaps/mb_via/config.h new file mode 100644 index 0000000000..cdc04f6908 --- /dev/null +++ b/keyboards/crkbd/keymaps/mb_via/config.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 @foostan | ||
| 3 | Copyright 2020 Drashna Jaelre <@drashna> | ||
| 4 | Copyright 2021 Elliot Powell <@e11i0t23> | ||
| 5 | |||
| 6 | This program is free software: you can redistribute it and/or modify | ||
| 7 | it under the terms of the GNU General Public License as published by | ||
| 8 | the Free Software Foundation, either version 2 of the License, or | ||
| 9 | (at your option) any later version. | ||
| 10 | |||
| 11 | This program is distributed in the hope that it will be useful, | ||
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | GNU General Public License for more details. | ||
| 15 | |||
| 16 | You should have received a copy of the GNU General Public License | ||
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #pragma once | ||
| 21 | |||
| 22 | /* Select hand configuration */ | ||
| 23 | |||
| 24 | #define MASTER_LEFT | ||
| 25 | // #define MASTER_RIGHT | ||
| 26 | // #define EE_HANDS | ||
diff --git a/keyboards/crkbd/keymaps/mb_via/keymap.c b/keyboards/crkbd/keymaps/mb_via/keymap.c new file mode 100644 index 0000000000..027e1449cc --- /dev/null +++ b/keyboards/crkbd/keymaps/mb_via/keymap.c | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 @foostan | ||
| 3 | Copyright 2020 Drashna Jaelre <@drashna> | ||
| 4 | Copyright 2021 Elliot Powell <@e11i0t23> | ||
| 5 | |||
| 6 | This program is free software: you can redistribute it and/or modify | ||
| 7 | it under the terms of the GNU General Public License as published by | ||
| 8 | the Free Software Foundation, either version 2 of the License, or | ||
| 9 | (at your option) any later version. | ||
| 10 | |||
| 11 | This program is distributed in the hope that it will be useful, | ||
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | GNU General Public License for more details. | ||
| 15 | |||
| 16 | You should have received a copy of the GNU General Public License | ||
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #include QMK_KEYBOARD_H | ||
| 21 | |||
| 22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 23 | [0] = LAYOUT_split_3x6_3( | ||
| 24 | //,-----------------------------------------------------. ,-----------------------------------------------------. | ||
| 25 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 26 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 27 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 28 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 29 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ESC, | ||
| 30 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 31 | KC_LGUI, TL_LOWR, KC_SPC, KC_ENT, TL_UPPR, KC_RALT | ||
| 32 | //`--------------------------' `--------------------------' | ||
| 33 | |||
| 34 | ), | ||
| 35 | |||
| 36 | [1] = LAYOUT_split_3x6_3( | ||
| 37 | //,-----------------------------------------------------. ,-----------------------------------------------------. | ||
| 38 | KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 39 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 40 | KC_LCTL, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP,KC_RIGHT, XXXXXXX, XXXXXXX, | ||
| 41 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 42 | KC_LSFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 43 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 44 | KC_LGUI, _______, KC_SPC, KC_ENT, _______, KC_RALT | ||
| 45 | //`--------------------------' `--------------------------' | ||
| 46 | ), | ||
| 47 | |||
| 48 | [2] = LAYOUT_split_3x6_3( | ||
| 49 | //,-----------------------------------------------------. ,-----------------------------------------------------. | ||
| 50 | KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
| 51 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 52 | KC_LCTL, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_GRV, | ||
| 53 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 54 | KC_LSFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_TILD, | ||
| 55 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 56 | KC_LGUI, _______, KC_SPC, KC_ENT, _______, KC_RALT | ||
| 57 | //`--------------------------' `--------------------------' | ||
| 58 | ), | ||
| 59 | |||
| 60 | [3] = LAYOUT_split_3x6_3( | ||
| 61 | //,-----------------------------------------------------. ,-----------------------------------------------------. | ||
| 62 | QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 63 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 64 | RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 65 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 66 | RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 67 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 68 | KC_LGUI, _______, KC_SPC, KC_ENT, _______, KC_RALT | ||
| 69 | //`--------------------------' `--------------------------' | ||
| 70 | ) | ||
| 71 | }; | ||
diff --git a/keyboards/crkbd/keymaps/mb_via/readme.md b/keyboards/crkbd/keymaps/mb_via/readme.md new file mode 100644 index 0000000000..048927073b --- /dev/null +++ b/keyboards/crkbd/keymaps/mb_via/readme.md | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # Default Via keyboard for the Corne R2G by Mechboards UK | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | Corne R2G is an eddition of the classic CRKBD by footsan remade to feature a full smd assembly | ||
| 6 | |||
| 7 | In this fold can be found the default via enabled keymap that can be in conjunction | ||
| 8 | |||
| 9 | Flash example for this Keymap: | ||
| 10 | ```sh | ||
| 11 | qmk flash -kb crkbd/r2g -km mb_via | ||
| 12 | ``` | ||
diff --git a/keyboards/crkbd/keymaps/mb_via/rules.mk b/keyboards/crkbd/keymaps/mb_via/rules.mk new file mode 100644 index 0000000000..cda04c7ce7 --- /dev/null +++ b/keyboards/crkbd/keymaps/mb_via/rules.mk | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 2 | VIA_ENABLE = yes # Enable VIA | ||
| 3 | |||
diff --git a/keyboards/lily58/keymaps/mb_via/config.h b/keyboards/lily58/keymaps/mb_via/config.h new file mode 100644 index 0000000000..bd4e11fb0e --- /dev/null +++ b/keyboards/lily58/keymaps/mb_via/config.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* | ||
| 2 | This is the c configuration file for the keymap | ||
| 3 | |||
| 4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 5 | Copyright 2015 Jack Humbert | ||
| 6 | Copyright 2023 Elliot Powell | ||
| 7 | |||
| 8 | This program is free software: you can redistribute it and/or modify | ||
| 9 | it under the terms of the GNU General Public License as published by | ||
| 10 | the Free Software Foundation, either version 2 of the License, or | ||
| 11 | (at your option) any later version. | ||
| 12 | |||
| 13 | This program is distributed in the hope that it will be useful, | ||
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | GNU General Public License for more details. | ||
| 17 | |||
| 18 | You should have received a copy of the GNU General Public License | ||
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #pragma once | ||
| 23 | |||
| 24 | /* Select hand configuration */ | ||
| 25 | |||
| 26 | #define MASTER_LEFT | ||
| 27 | // #define MASTER_RIGHT | ||
| 28 | // #define EE_HANDS | ||
| 29 | |||
| 30 | #define TAPPING_FORCE_HOLD | ||
| 31 | #define TAPPING_TERM 100 | ||
| 32 | |||
diff --git a/keyboards/lily58/keymaps/mb_via/keymap.c b/keyboards/lily58/keymaps/mb_via/keymap.c new file mode 100644 index 0000000000..cef682db53 --- /dev/null +++ b/keyboards/lily58/keymaps/mb_via/keymap.c | |||
| @@ -0,0 +1,121 @@ | |||
| 1 | /* Copyright 2020 Naoki Katahira | ||
| 2 | * Copyright 2023 Elliot Powell | ||
| 3 | * | ||
| 4 | * This program is free software: you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation, either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | enum layer_number { | ||
| 21 | _QWERTY = 0, | ||
| 22 | _LOWER, | ||
| 23 | _RAISE, | ||
| 24 | _ADJUST, | ||
| 25 | }; | ||
| 26 | |||
| 27 | #define RAISE MO(_RAISE) | ||
| 28 | #define LOWER MO(_LOWER) | ||
| 29 | |||
| 30 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 31 | |||
| 32 | /* QWERTY | ||
| 33 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 34 | * | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ~ | | ||
| 35 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 36 | * | Tab | Q | W | E | R | T | | Y | U | I | O | P | - | | ||
| 37 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 38 | * |LCTRL | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' | | ||
| 39 | * |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------| | ||
| 40 | * |LShift| Z | X | C | V | B |-------| |-------| N | M | , | . | / |RShift| | ||
| 41 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
| 42 | * |LOWER | LGUI | Alt | /Space / \Enter \ |BackSP| RGUI |RAISE | | ||
| 43 | * | | | |/ / \ \ | | | | | ||
| 44 | * `-------------------''-------' '------''--------------------' | ||
| 45 | */ | ||
| 46 | |||
| 47 | [_QWERTY] = LAYOUT( | ||
| 48 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV, | ||
| 49 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, | ||
| 50 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 51 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LBRC, KC_RBRC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 52 | LOWER, KC_LGUI, KC_LALT, KC_SPC, KC_ENT, KC_BSPC, KC_RGUI, RAISE | ||
| 53 | ), | ||
| 54 | /* LOWER | ||
| 55 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 56 | * | | | | | | | | | | | | | | | ||
| 57 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 58 | * | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | | | ||
| 59 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 60 | * | | 1 | 2 | 3 | 4 | 5 |-------. ,-------| 6 | 7 | 8 | 9 | 0 | | | ||
| 61 | * |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------| | ||
| 62 | * | | | | | | |-------| |-------| | | ` | + | { | } | | | ||
| 63 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
| 64 | * |LOWER | LGUI | Alt | /Space / \Enter \ |BackSP| RGUI |RAISE | | ||
| 65 | * | | | |/ / \ \ | | | | | ||
| 66 | * `-------------------''-------' '------''--------------------' | ||
| 67 | */ | ||
| 68 | [_LOWER] = LAYOUT( | ||
| 69 | _______, _______, _______, _______, _______, _______, _______, _______, _______,_______, _______, _______, | ||
| 70 | _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, | ||
| 71 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, | ||
| 72 | _______, _______, _______, _______, _______, _______, _______, _______, KC_PIPE, KC_GRAVE, KC_PLUS, KC_LCBR, KC_RCBR, _______, | ||
| 73 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 74 | ), | ||
| 75 | /* RAISE | ||
| 76 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 77 | * | | | | | | | | | | | | | | | ||
| 78 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 79 | * | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 80 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 81 | * |RGBTOG|RGBHUI|RGBSAI|RGBVAI| |-------. ,-------| | Left | Down | Up |Right | | | ||
| 82 | * |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------| | ||
| 83 | * |RGBMOD|RGBHUD|RGBSAD|RGBVAD| | |-------| |-------| + | = | [ | ] | \ | | | ||
| 84 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
| 85 | * |LOWER | LGUI | Alt | /Space / \Enter \ |BackSP| RGUI |RAISE | | ||
| 86 | * | | | |/ / \ \ | | | | | ||
| 87 | * `-------------------''-------' '------''--------------------' | ||
| 88 | */ | ||
| 89 | |||
| 90 | [_RAISE] = LAYOUT( | ||
| 91 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 92 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 93 | RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, | ||
| 94 | RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, KC_PLUS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, _______, | ||
| 95 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 96 | ), | ||
| 97 | |||
| 98 | /* ADJUST | ||
| 99 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 100 | * | | | | | | | | | | | | | | | ||
| 101 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 102 | * | | | | | | | | | | | | | | | ||
| 103 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 104 | * | | | | | | |-------. ,-------| | | | | | | | ||
| 105 | * |------+------+------+------+------+------| | | |------+------+------+------+------+------| | ||
| 106 | * | | | | | | |-------| |-------| | | | | | | | ||
| 107 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
| 108 | * |LOWER | LGUI | Alt | /Space / \Enter \ |BackSP| RGUI |RAISE | | ||
| 109 | * | | | |/ / \ \ | | | | | ||
| 110 | * `----------------------------' '------''--------------------' | ||
| 111 | */ | ||
| 112 | [_ADJUST] = LAYOUT( | ||
| 113 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 114 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 115 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 116 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 117 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 118 | ) | ||
| 119 | }; | ||
| 120 | |||
| 121 | |||
diff --git a/keyboards/lily58/keymaps/mb_via/rules.mk b/keyboards/lily58/keymaps/mb_via/rules.mk new file mode 100644 index 0000000000..3c1f402d2a --- /dev/null +++ b/keyboards/lily58/keymaps/mb_via/rules.mk | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | OLED_ENABLE = yes | ||
| 3 | MOUSEKEY_ENABLE = yes | ||
| 4 | EXTRAKEY_ENABLE = yes | ||
