forked from forks/qmk_firmware
feat: add viva keymap for *75 boards
This commit is contained in:
parent
93cc3f58b1
commit
db67dc00ed
4
.envrc
Normal file
4
.envrc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
|
||||||
|
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
|
||||||
|
fi
|
||||||
|
use nix
|
319
keyboards/idobao/id75/keymaps/viva/idobao_id75_v1_viva.json
Normal file
319
keyboards/idobao/id75/keymaps/viva/idobao_id75_v1_viva.json
Normal file
|
@ -0,0 +1,319 @@
|
||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"notes": "",
|
||||||
|
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
|
||||||
|
"keyboard": "idobao/id75/v1",
|
||||||
|
"keymap": "idobao_id75_v1_viva",
|
||||||
|
"layout": "LAYOUT_ortho_5x15",
|
||||||
|
"layers": [
|
||||||
|
[
|
||||||
|
"KC_ESC",
|
||||||
|
"KC_1",
|
||||||
|
"KC_2",
|
||||||
|
"KC_3",
|
||||||
|
"KC_4",
|
||||||
|
"KC_5",
|
||||||
|
"KC_INS",
|
||||||
|
"KC_HOME",
|
||||||
|
"KC_PGUP",
|
||||||
|
"KC_6",
|
||||||
|
"KC_7",
|
||||||
|
"KC_8",
|
||||||
|
"KC_9",
|
||||||
|
"KC_0",
|
||||||
|
"KC_BSPC",
|
||||||
|
"KC_TAB",
|
||||||
|
"KC_Q",
|
||||||
|
"KC_W",
|
||||||
|
"KC_E",
|
||||||
|
"KC_R",
|
||||||
|
"KC_T",
|
||||||
|
"KC_DEL",
|
||||||
|
"KC_END",
|
||||||
|
"KC_PGDN",
|
||||||
|
"KC_Y",
|
||||||
|
"KC_U",
|
||||||
|
"KC_I",
|
||||||
|
"KC_O",
|
||||||
|
"KC_P",
|
||||||
|
"KC_BSLS",
|
||||||
|
"KC_LCTL",
|
||||||
|
"KC_A",
|
||||||
|
"KC_S",
|
||||||
|
"KC_D",
|
||||||
|
"KC_F",
|
||||||
|
"KC_G",
|
||||||
|
"KC_MINS",
|
||||||
|
"KC_GRV",
|
||||||
|
"KC_EQL",
|
||||||
|
"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_LBRC",
|
||||||
|
"KC_UP",
|
||||||
|
"KC_RBRC",
|
||||||
|
"KC_N",
|
||||||
|
"KC_M",
|
||||||
|
"KC_COMM",
|
||||||
|
"KC_DOT",
|
||||||
|
"KC_SLSH",
|
||||||
|
"KC_ENT",
|
||||||
|
"KC_LGUI",
|
||||||
|
"KC_COPY",
|
||||||
|
"KC_PSTE",
|
||||||
|
"KC_LALT",
|
||||||
|
"MO(1)",
|
||||||
|
"KC_SPC",
|
||||||
|
"KC_LEFT",
|
||||||
|
"KC_DOWN",
|
||||||
|
"KC_RGHT",
|
||||||
|
"KC_SPC",
|
||||||
|
"MO(2)",
|
||||||
|
"KC_VOLD",
|
||||||
|
"KC_VOLU",
|
||||||
|
"MO(3)",
|
||||||
|
"KC_RGUI"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_F1",
|
||||||
|
"KC_F2",
|
||||||
|
"KC_F3",
|
||||||
|
"KC_F4",
|
||||||
|
"KC_F5",
|
||||||
|
"KC_F6",
|
||||||
|
"KC_F7",
|
||||||
|
"KC_F8",
|
||||||
|
"KC_F9",
|
||||||
|
"KC_F10",
|
||||||
|
"KC_F11",
|
||||||
|
"KC_F12",
|
||||||
|
"KC_F13",
|
||||||
|
"KC_F14",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_EXLM",
|
||||||
|
"KC_AT",
|
||||||
|
"KC_LCBR",
|
||||||
|
"KC_RCBR",
|
||||||
|
"KC_PIPE",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_HASH",
|
||||||
|
"KC_DLR",
|
||||||
|
"KC_LPRN",
|
||||||
|
"KC_RPRN",
|
||||||
|
"KC_GRV",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_LEFT",
|
||||||
|
"KC_DOWN",
|
||||||
|
"KC_UP",
|
||||||
|
"KC_RGHT",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_PERC",
|
||||||
|
"KC_CIRC",
|
||||||
|
"KC_LBRC",
|
||||||
|
"KC_RBRC",
|
||||||
|
"KC_TILD",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_TRNS"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"KC_NO",
|
||||||
|
"RALT(KC_1)",
|
||||||
|
"RALT(KC_2)",
|
||||||
|
"RALT(KC_3)",
|
||||||
|
"RALT(KC_4)",
|
||||||
|
"RALT(KC_5)",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"RALT(KC_6)",
|
||||||
|
"RALT(KC_7)",
|
||||||
|
"RALT(KC_8)",
|
||||||
|
"RALT(KC_9)",
|
||||||
|
"RALT(KC_0)",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"RALT(KC_Q)",
|
||||||
|
"RALT(KC_W)",
|
||||||
|
"RALT(KC_E)",
|
||||||
|
"RALT(KC_R)",
|
||||||
|
"RALT(KC_T)",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"RALT(KC_Y)",
|
||||||
|
"RALT(KC_U)",
|
||||||
|
"RALT(KC_I)",
|
||||||
|
"RALT(KC_O)",
|
||||||
|
"RALT(KC_P)",
|
||||||
|
"RALT(KC_BSLS)",
|
||||||
|
"KC_NO",
|
||||||
|
"RALT(KC_A)",
|
||||||
|
"RALT(KC_S)",
|
||||||
|
"RALT(KC_D)",
|
||||||
|
"RALT(KC_F)",
|
||||||
|
"RALT(KC_G)",
|
||||||
|
"RALT(KC_MINS)",
|
||||||
|
"RALT(KC_GRV)",
|
||||||
|
"RALT(KC_EQL)",
|
||||||
|
"RALT(KC_H)",
|
||||||
|
"RALT(KC_J)",
|
||||||
|
"RALT(KC_K)",
|
||||||
|
"RALT(KC_L)",
|
||||||
|
"RALT(KC_SCLN)",
|
||||||
|
"RALT(KC_QUOT)",
|
||||||
|
"KC_NO",
|
||||||
|
"RALT(KC_Z)",
|
||||||
|
"RALT(KC_X)",
|
||||||
|
"RALT(KC_C)",
|
||||||
|
"RALT(KC_V)",
|
||||||
|
"RALT(KC_B)",
|
||||||
|
"RALT(KC_LBRC)",
|
||||||
|
"KC_NO",
|
||||||
|
"RALT(KC_RBRC)",
|
||||||
|
"RALT(KC_N)",
|
||||||
|
"RALT(KC_M)",
|
||||||
|
"RALT(KC_COMM)",
|
||||||
|
"RALT(KC_DOT)",
|
||||||
|
"RALT(KC_SLSH)",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_TRNS"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"RGB_TOG",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"NK_ON",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_TRNS",
|
||||||
|
"KC_NO"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"author": ""
|
||||||
|
}
|
25
keyboards/idobao/id75/keymaps/viva/keymap.c
Normal file
25
keyboards/idobao/id75/keymaps/viva/keymap.c
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
#if __has_include("keymap.h")
|
||||||
|
# include "keymap.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_ortho_5x15(
|
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_INS, KC_HOME, KC_PGUP, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_END, KC_PGDN, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_MINS, KC_GRV, KC_EQL, 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_LBRC, KC_UP, KC_RBRC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, KC_LGUI, KC_COPY, KC_PSTE, KC_LALT, MO(1), KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT, KC_SPC, MO(2), KC_VOLD, KC_VOLU, MO(3), KC_RGUI
|
||||||
|
),
|
||||||
|
[1] = LAYOUT_ortho_5x15(
|
||||||
|
KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, KC_F14, KC_TRNS, KC_EXLM, KC_AT, KC_LCBR, KC_RCBR, KC_PIPE, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_GRV, KC_NO, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, KC_NO, KC_TRNS, KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_TILD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
[2] = LAYOUT_ortho_5x15(
|
||||||
|
KC_NO, RALT(KC_1), RALT(KC_2), RALT(KC_3), RALT(KC_4), RALT(KC_5), KC_NO, KC_NO, KC_NO, RALT(KC_6), RALT(KC_7), RALT(KC_8), RALT(KC_9), RALT(KC_0), KC_NO, KC_NO, RALT(KC_Q), RALT(KC_W), RALT(KC_E), RALT(KC_R), RALT(KC_T), KC_NO, KC_NO, KC_NO, RALT(KC_Y), RALT(KC_U), RALT(KC_I), RALT(KC_O), RALT(KC_P), RALT(KC_BSLS), KC_NO, RALT(KC_A), RALT(KC_S), RALT(KC_D), RALT(KC_F), RALT(KC_G), RALT(KC_MINS), RALT(KC_GRV), RALT(KC_EQL), RALT(KC_H), RALT(KC_J), RALT(KC_K), RALT(KC_L), RALT(KC_SCLN), RALT(KC_QUOT), KC_NO, RALT(KC_Z), RALT(KC_X), RALT(KC_C), RALT(KC_V), RALT(KC_B), RALT(KC_LBRC), KC_NO, RALT(KC_RBRC), RALT(KC_N), RALT(KC_M), RALT(KC_COMM), RALT(KC_DOT), RALT(KC_SLSH), KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
[3] = LAYOUT_ortho_5x15(
|
||||||
|
RGB_TOG, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, NK_ON, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_NO
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
|
||||||
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||||
|
|
||||||
|
};
|
||||||
|
#endif // defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
|
25
keyboards/xiudi/xd75/keymaps/viva/keymap.c
Normal file
25
keyboards/xiudi/xd75/keymaps/viva/keymap.c
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
#if __has_include("keymap.h")
|
||||||
|
# include "keymap.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_ortho_5x15(
|
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_INS, KC_HOME, KC_PGUP, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_END, KC_PGDN, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_MINS, KC_GRV, KC_EQL, 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_LBRC, KC_UP, KC_RBRC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, KC_LGUI, KC_COPY, KC_PSTE, KC_LALT, MO(1), KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT, KC_SPC, MO(2), KC_VOLD, KC_VOLU, MO(3), KC_RGUI
|
||||||
|
),
|
||||||
|
[1] = LAYOUT_ortho_5x15(
|
||||||
|
KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, KC_F14, KC_TRNS, KC_EXLM, KC_AT, KC_LCBR, KC_RCBR, KC_PIPE, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_GRV, KC_NO, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, KC_NO, KC_TRNS, KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_TILD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
[2] = LAYOUT_ortho_5x15(
|
||||||
|
KC_NO, RALT(KC_1), RALT(KC_2), RALT(KC_3), RALT(KC_4), RALT(KC_5), KC_NO, KC_NO, KC_NO, RALT(KC_6), RALT(KC_7), RALT(KC_8), RALT(KC_9), RALT(KC_0), KC_NO, KC_NO, RALT(KC_Q), RALT(KC_W), RALT(KC_E), RALT(KC_R), RALT(KC_T), KC_NO, KC_NO, KC_NO, RALT(KC_Y), RALT(KC_U), RALT(KC_I), RALT(KC_O), RALT(KC_P), RALT(KC_BSLS), KC_NO, RALT(KC_A), RALT(KC_S), RALT(KC_D), RALT(KC_F), RALT(KC_G), RALT(KC_MINS), RALT(KC_GRV), RALT(KC_EQL), RALT(KC_H), RALT(KC_J), RALT(KC_K), RALT(KC_L), RALT(KC_SCLN), RALT(KC_QUOT), KC_NO, RALT(KC_Z), RALT(KC_X), RALT(KC_C), RALT(KC_V), RALT(KC_B), RALT(KC_LBRC), KC_NO, RALT(KC_RBRC), RALT(KC_N), RALT(KC_M), RALT(KC_COMM), RALT(KC_DOT), RALT(KC_SLSH), KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
[3] = LAYOUT_ortho_5x15(
|
||||||
|
RGB_TOG, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, NK_ON, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_NO
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
|
||||||
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||||
|
|
||||||
|
};
|
||||||
|
#endif // defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
|
71
shell.nix
71
shell.nix
|
@ -1,72 +1,11 @@
|
||||||
let
|
with (import <nixpkgs> {});
|
||||||
# We specify sources via Niv: use "niv update nixpkgs" to update nixpkgs, for example.
|
|
||||||
sources = import ./util/nix/sources.nix { };
|
|
||||||
in
|
|
||||||
# However, if you want to override Niv's inputs, this will let you do that.
|
|
||||||
{ pkgs ? import sources.nixpkgs { }
|
|
||||||
, poetry2nix ? pkgs.callPackage (import sources.poetry2nix) { }
|
|
||||||
, avr ? true
|
|
||||||
, arm ? true
|
|
||||||
, teensy ? true }:
|
|
||||||
with pkgs;
|
|
||||||
let
|
|
||||||
avrlibc = pkgsCross.avr.libcCross;
|
|
||||||
|
|
||||||
avr_incflags = [
|
mkShell {
|
||||||
"-isystem ${avrlibc}/avr/include"
|
buildInputs = [
|
||||||
"-B${avrlibc}/avr/lib/avr5"
|
qmk
|
||||||
"-L${avrlibc}/avr/lib/avr5"
|
|
||||||
"-B${avrlibc}/avr/lib/avr35"
|
|
||||||
"-L${avrlibc}/avr/lib/avr35"
|
|
||||||
"-B${avrlibc}/avr/lib/avr51"
|
|
||||||
"-L${avrlibc}/avr/lib/avr51"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Builds the python env based on nix/pyproject.toml and
|
|
||||||
# nix/poetry.lock Use the "poetry update --lock", "poetry add
|
|
||||||
# --lock" etc. in the nix folder to adjust the contents of those
|
|
||||||
# files if the requirements*.txt files change
|
|
||||||
pythonEnv = poetry2nix.mkPoetryEnv {
|
|
||||||
projectDir = ./util/nix;
|
|
||||||
overrides = poetry2nix.overrides.withDefaults (self: super: {
|
|
||||||
qmk = super.qmk.overridePythonAttrs(old: {
|
|
||||||
# Allow QMK CLI to run "qmk" as a subprocess (the wrapper changes
|
|
||||||
# $PATH and breaks these invocations).
|
|
||||||
dontWrapPythonPrograms = true;
|
|
||||||
|
|
||||||
# Fix "qmk setup" to use the Python interpreter from the environment
|
|
||||||
# when invoking "qmk doctor" (sys.executable gets its value from
|
|
||||||
# $NIX_PYTHONEXECUTABLE, which is set by the "qmk" wrapper from the
|
|
||||||
# Python environment, so "qmk doctor" then runs with the proper
|
|
||||||
# $NIX_PYTHONPATH too, because sys.executable actually points to
|
|
||||||
# another wrapper from the same Python environment).
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace qmk_cli/subcommands/setup.py \
|
|
||||||
--replace "[Path(sys.argv[0]).as_posix()" \
|
|
||||||
"[Path(sys.executable).as_posix(), Path(sys.argv[0]).as_posix()"
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
in
|
|
||||||
mkShell {
|
|
||||||
name = "qmk-firmware";
|
|
||||||
|
|
||||||
buildInputs = [ clang-tools_11 dfu-programmer dfu-util diffutils git pythonEnv niv ]
|
|
||||||
++ lib.optional avr [
|
|
||||||
pkgsCross.avr.buildPackages.binutils
|
|
||||||
pkgsCross.avr.buildPackages.gcc8
|
|
||||||
avrlibc
|
|
||||||
avrdude
|
|
||||||
]
|
|
||||||
++ lib.optional arm [ gcc-arm-embedded ]
|
|
||||||
++ lib.optional teensy [ teensy-loader-cli ];
|
|
||||||
|
|
||||||
AVR_CFLAGS = lib.optional avr avr_incflags;
|
|
||||||
AVR_ASFLAGS = lib.optional avr avr_incflags;
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
# Prevent the avr-gcc wrapper from picking up host GCC flags
|
# empty so far
|
||||||
# like -iframework, which is problematic on Darwin
|
|
||||||
unset NIX_CFLAGS_COMPILE_FOR_TARGET
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue