Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vial support for idobao/montex/v2 #546

Merged
merged 5 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions keyboards/idobao/montex/v2/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2023 Oleg Titov <oleg.titov@gmail.com>
// 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
54 changes: 54 additions & 0 deletions keyboards/idobao/montex/v2/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
@@ -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
)
};
21 changes: 21 additions & 0 deletions keyboards/idobao/montex/v2/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions keyboards/idobao/montex/v2/keymaps/vial/vial.json
Original file line number Diff line number Diff line change
@@ -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"]
]
}
}