diff --git a/keyboards/idobao/montex/v2/keymaps/vial/config.h b/keyboards/idobao/montex/v2/keymaps/vial/config.h new file mode 100644 index 00000000000..1c065166e08 --- /dev/null +++ b/keyboards/idobao/montex/v2/keymaps/vial/config.h @@ -0,0 +1,18 @@ +// Copyright 2023 Oleg Titov +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#define VIAL_KEYBOARD_UID {0x1A, 0xC2, 0xE7, 0x4C, 0xE4, 0x37, 0xF3, 0x6A} + +#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 4 } + +// Enable all available RGB Matrix effects +#define RGB_MATRIX_FRAMEBUFFER_EFFECTS +#define RGB_MATRIX_KEYPRESSES + +// Firmware size optimization +// disable Lock Key support +#undef LOCKING_SUPPORT_ENABLE +#undef LOCKING_RESYNC_ENABLE diff --git a/keyboards/idobao/montex/v2/keymaps/vial/keymap.c b/keyboards/idobao/montex/v2/keymaps/vial/keymap.c new file mode 100644 index 00000000000..db37bc72c7e --- /dev/null +++ b/keyboards/idobao/montex/v2/keymaps/vial/keymap.c @@ -0,0 +1,54 @@ +// Copyright 2022 IBNobody (@IBNobody) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* + * ┌───┌───┬───┬───┬───┐ + * │Esc│Tab│ F1│Cal│Bsp│ + * ├───┼───┼───┼───┼───┤ + * │Ctr│Num│ / │ * │ - │ + * ├───┼───┼───┼───┼───┤ + * │Gui│ 7 │ 8 │ 9 │ │ + * ├───┼───┼───┼───┤ + │ + * │Alt│ 4 │ 5 │ 6 │ │ + * ├───┼───┼───┼───┼───┤ + * │Shi│ 1 │ 2 │ 3 │ │ + * ├───┼───┴───┼───┤Ent│ + * │MO1│ 0 │ . │ │ + * └───┴───────┴───┴───┘ + */ + [0] = LAYOUT_numpad_6x5( + QK_GESC, KC_TAB, KC_F1, KC_CALC, KC_BSPC, + KC_LCTL, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, + KC_LGUI, KC_P7, KC_P8, KC_P9, KC_PPLS, + KC_LALT, KC_P4, KC_P5, KC_P6, + KC_LSFT, KC_P1, KC_P2, KC_P3, KC_PENT, + MO(1), KC_P0, KC_PDOT + ), + + /* + * ┌───┌───┐───┬───┬───┐ + * │Rst│TOG│MOD│PSc│SLk│ + * ├───┼───┼───┼───┼───┤ + * │Hu+│ │Sp-│Sp+│Br-│ + * ├───┼───┼───┼───┼───┤ + * │Hu-│Hom│ ↑ │PgU│ │ + * ├───┼───┼───┼───┤Br+│ + * │St+│ ← │ │ → │ │ + * ├───┼───┼───┼───┤───┤ + * │St-│End│ ↓ │PgD│ │ + * ├───┼───┴───┼───┤Ent│ + * │mo1│Insert │Del│ │ + * └───┴───────┴───┘───┘ + */ + [1] = LAYOUT_numpad_6x5( + QK_BOOT, RGB_TOG, RGB_MOD, KC_PSCR, KC_SCRL, + RGB_HUI, XXXXXXX, RGB_SPD, RGB_SPI, RGB_VAD, + RGB_HUD, KC_HOME, KC_UP, KC_PGUP, RGB_VAI, + RGB_SAI, KC_LEFT, XXXXXXX, KC_RGHT, + RGB_SAD, KC_END, KC_DOWN, KC_PGDN, KC_ENT, + _______, KC_INS, KC_DEL + ) +}; diff --git a/keyboards/idobao/montex/v2/keymaps/vial/rules.mk b/keyboards/idobao/montex/v2/keymaps/vial/rules.mk new file mode 100644 index 00000000000..9bf0db06bbd --- /dev/null +++ b/keyboards/idobao/montex/v2/keymaps/vial/rules.mk @@ -0,0 +1,21 @@ +VIA_ENABLE = yes # Enable VIA +VIAL_ENABLE = yes # Enable VIAL +VIALRGB_ENABLE = yes + +# Options to reduce firmware size: +LTO_ENABLE = yes # make the compiler work harder + +# Vial optimization +QMK_SETTINGS = no # enables the tab to change QMK settings from the GUI1 +TAP_DANCE_ENABLE = yes +COMBO_ENABLE = no + +# QMK optimization +CONSOLE_ENABLE = no +COMMAND_ENABLE = no +MOUSEKEY_ENABLE = no +#EXTRAKEY_ENABLE = no + +SPACE_CADET_ENABLE = no +GRAVE_ESC_ENABLE = no +MAGIC_ENABLE = no diff --git a/keyboards/idobao/montex/v2/keymaps/vial/vial.json b/keyboards/idobao/montex/v2/keymaps/vial/vial.json new file mode 100644 index 00000000000..2948aa0c506 --- /dev/null +++ b/keyboards/idobao/montex/v2/keymaps/vial/vial.json @@ -0,0 +1,17 @@ +{ + "name": "IDOBAO Montex V2", + "vendorId": "0x6964", + "productId": "0x0227", + "lighting": "vialrgb", + "matrix": {"rows": 6, "cols": 5}, + "layouts": { + "keymap": [ + [{"c": "#777777"}, "0,0", {"c": "#aaaaaa"}, "0,1", "0,2", "0,3", "0,4"], + [{"y": 0.5, "c": "#cccccc"}, "1,0", "1,1", "1,2", "1,3", "1,4"], + ["2,0", "2,1", "2,2", "2,3", {"h": 2}, "2,4"], + ["3,0", "3,1", "3,2", "3,3"], + ["4,0", "4,1", "4,2", "4,3", {"c": "#777777", "h": 2}, "5,3"], + [{"c": "#cccccc"}, "5,0", {"w": 2}, "5,1", "5,2"] + ] + } +}