update layers for chocofi
This commit is contained in:
parent
2177d139cf
commit
9578068fe2
|
@ -23,36 +23,47 @@ test better enter keys
|
||||||
https://docs.qmk.fm/#/keycodes
|
https://docs.qmk.fm/#/keycodes
|
||||||
https://docusaurus.qmk.fm/feature_layers/
|
https://docusaurus.qmk.fm/feature_layers/
|
||||||
use LT(layer, kc) - momentarily activates layer when held, and sends kc when tapped.
|
use LT(layer, kc) - momentarily activates layer when held, and sends kc when tapped.
|
||||||
|
|
||||||
|
this seems like a great example of composed layers and support for different environments
|
||||||
|
https://github.com/0x64746b/qmk_firmware/blob/chocofi/keyboards/chocofi/keymaps/dtk35/keymap.c
|
||||||
|
|
||||||
|
TODO
|
||||||
|
rshift: tap => toggle alpha/nav layer,
|
||||||
|
use the 'free' enter hold for rctrl and the hold on esc for lalt
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
// Layer declarations
|
||||||
[0] = LAYOUT_split_3x6_3(
|
enum {
|
||||||
XXXXXXX, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_BSPC, XXXXXXX,
|
COLEMAK = 0,
|
||||||
XXXXXXX, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, XXXXXXX,
|
NAV_FN,
|
||||||
XXXXXXX, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, XXXXXXX,
|
NUM_SYM,
|
||||||
KC_TAB, MO(1), KC_SPC, KC_ENT, MO(2), KC_ESC
|
|
||||||
),
|
|
||||||
|
|
||||||
[1] = LAYOUT_split_3x6_3(
|
NUM_LAYERS
|
||||||
XXXXXXX, KC_1, KC_F7, KC_F8, KC_F9, KC_F10, KC_6, KC_HOME, KC_8, KC_END, KC_BSPC, XXXXXXX,
|
|
||||||
XXXXXXX, XXXXXXX, KC_F4, KC_F5, KC_F6, KC_F11, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_DEL, XXXXXXX,
|
|
||||||
XXXXXXX, XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F12, XXXXXXX, KC_PGDN, KC_PGUP, XXXXXXX, XXXXXXX, XXXXXXX,
|
|
||||||
KC_LGUI, _______, KC_SPC, KC_ENT, MO(3), KC_RALT
|
|
||||||
),
|
|
||||||
|
|
||||||
[2] = LAYOUT_split_3x6_3(
|
|
||||||
KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_7, KC_8, KC_9, KC_PLUS, KC_BSPC,
|
|
||||||
KC_LCTL, KC_LT, KC_LCBR, KC_LPRN, KC_LBRC, XXXXXXX, KC_MINS, KC_4, KC_5, KC_6, KC_MINUS, KC_GRV,
|
|
||||||
KC_LSFT, KC_GT, KC_RCBR, KC_RPRN, KC_RBRC, XXXXXXX, KC_UNDS, KC_1, KC_2, KC_3, KC_PIPE, KC_TILD,
|
|
||||||
KC_LGUI, MO(3), KC_SPC, KC_ENT, _______, KC_RALT
|
|
||||||
),
|
|
||||||
|
|
||||||
[3] = LAYOUT_split_3x6_3(
|
|
||||||
QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
|
||||||
RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
|
||||||
RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
|
||||||
KC_LGUI, _______, KC_SPC, KC_ENT, _______, KC_RALT
|
|
||||||
)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[COLEMAK] = LAYOUT_split_3x5_3(
|
||||||
|
KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_BSPC,
|
||||||
|
KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O,
|
||||||
|
KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH,
|
||||||
|
LSFT_T(KC_DEL), LT(NAV_FN, KC_SPC), LGUI_T(KC_TAB), CTL_T(KC_ESC), LT(NUM_SYM, KC_ENT), TG(NAV_FN)
|
||||||
|
),
|
||||||
|
|
||||||
|
[NAV_FN] = LAYOUT_split_3x5_3(
|
||||||
|
KC_1, KC_F7, KC_F8, KC_F9, KC_F10, KC_PGUP, KC_HOME, KC_8, KC_END, KC_BSPC,
|
||||||
|
XXXXXXX, KC_F4, KC_F5, KC_F6, KC_F11, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_DEL,
|
||||||
|
XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F12, KC_PGDN, KC_PGDN, KC_PGUP, XXXXXXX, XXXXXXX,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[NUM_SYM] = LAYOUT_split_3x5_3(
|
||||||
|
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_7, KC_8, KC_9, KC_PLUS,
|
||||||
|
KC_LT, KC_LCBR, KC_LPRN, KC_LBRC, XXXXXXX, KC_MINS, KC_4, KC_5, KC_6, KC_MINUS,
|
||||||
|
KC_GT, KC_RCBR, KC_RPRN, KC_RBRC, XXXXXXX, KC_UNDS, KC_1, KC_2, KC_3, KC_PIPE,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
)
|
||||||
|
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue