diff --git a/keyboards/reviung/reviung5/keymaps/vial/config.h b/keyboards/reviung/reviung5/keymaps/vial/config.h new file mode 100644 index 0000000000..4e56ec488b --- /dev/null +++ b/keyboards/reviung/reviung5/keymaps/vial/config.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define VIAL_KEYBOARD_UID {0x4D, 0x60, 0x3A, 0x29, 0x33, 0x35, 0x61, 0x41} +#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 1 } diff --git a/keyboards/reviung/reviung5/keymaps/vial/keymap.c b/keyboards/reviung/reviung5/keymaps/vial/keymap.c new file mode 100644 index 0000000000..9116caaf46 --- /dev/null +++ b/keyboards/reviung/reviung5/keymaps/vial/keymap.c @@ -0,0 +1,41 @@ +/* Copyright 2021 gtips + * + * 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 . + */ +#include QMK_KEYBOARD_H + +// Defines names for use in layer keycodes and the keymap +enum layer_names { + _BASE, + _LOWER, +}; + +#define LO_VD LT(_LOWER, KC_VOLD) + +#if defined(ENCODER_MAP_ENABLE) +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { + [_BASE] = { ENCODER_CCW_CW(KC_MS_WH_UP, KC_MS_WH_DOWN) }, + [_LOWER] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI) }, +}; +#endif + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* Base */ + [_BASE] = LAYOUT_reviung5( + LO_VD, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU + ), + [_LOWER] = LAYOUT_reviung5( + _______, RGB_HUI, RGB_MOD, RGB_TOG, KC_MUTE + ) +}; diff --git a/keyboards/reviung/reviung5/keymaps/vial/readme.md b/keyboards/reviung/reviung5/keymaps/vial/readme.md new file mode 100644 index 0000000000..babdce579f --- /dev/null +++ b/keyboards/reviung/reviung5/keymaps/vial/readme.md @@ -0,0 +1 @@ +# The default keymap for reviung5 diff --git a/keyboards/reviung/reviung5/keymaps/vial/rules.mk b/keyboards/reviung/reviung5/keymaps/vial/rules.mk new file mode 100644 index 0000000000..b7b3fbe567 --- /dev/null +++ b/keyboards/reviung/reviung5/keymaps/vial/rules.mk @@ -0,0 +1,8 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes +LTO_ENABLE = yes +QMK_SETTINGS = no +KEY_OVERRIDE_ENABLE = no +TAP_DANCE_ENABLE = yes +COMBO_ENABLE = no +ENCODER_MAP_ENABLE = yes \ No newline at end of file diff --git a/keyboards/reviung/reviung5/keymaps/vial/vial.json b/keyboards/reviung/reviung5/keymaps/vial/vial.json new file mode 100644 index 0000000000..53cda7f305 --- /dev/null +++ b/keyboards/reviung/reviung5/keymaps/vial/vial.json @@ -0,0 +1,48 @@ +{ + "lighting": "qmk_rgblight", + "matrix": { + "rows": 1, + "cols": 5 + }, + "layouts": { + "keymap":[ + [ + { + "y": 0.5, + "x": 1 + }, + "0,1", + "0,2", + "0,3" + ], + [ + { + "y": 0.5, + "x": 4.25 + }, + "0,0\n\n\n\n\n\n\n\n\ne" + ], + [ + { + "x": 4.25 + }, + "0,1\n\n\n\n\n\n\n\n\ne" + ], + [ + { + "r": 15, + "y": -4 + }, + "0,0" + ], + [ + { + "r": -15, + "rx": 4.75, + "x": -0.75 + }, + "0,4" + ] + ] + } +} \ No newline at end of file