Make tri layer work
This commit is contained in:
parent
ba9acba868
commit
026eaeaa62
4 changed files with 27 additions and 14 deletions
6
config.h
6
config.h
|
@ -47,5 +47,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
//#define HOLD_ON_OTHER_KEY_PRESS
|
||||
|
||||
#define DYNAMIC_KEYMAP_LAYER_COUNT 5
|
||||
#define TRI_LAYER_ADJUST_LAYER 5
|
||||
// tri layer settings
|
||||
#define TRI_LAYER_ADJUST_LAYER 4
|
||||
#define TRI_LAYER_LOWER_LAYER 2
|
||||
#define TRI_LAYER_UPPER_LAYER 3
|
||||
// OLED font
|
||||
#define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c"
|
||||
|
|
|
@ -43,12 +43,12 @@
|
|||
"KC_DOT",
|
||||
"KC_SLSH",
|
||||
"KC_LGUI",
|
||||
"MO(2)",
|
||||
"ANY(TL_LOWR)",
|
||||
"KC_LCTL",
|
||||
"KC_ENT",
|
||||
"KC_SPC",
|
||||
"KC_RALT",
|
||||
"MO(3)"
|
||||
"ANY(TL_UPPR)"
|
||||
],
|
||||
[
|
||||
"KC_TAB",
|
||||
|
@ -63,7 +63,7 @@
|
|||
"KC_Y",
|
||||
"KC_PGUP",
|
||||
"KC_PGDN",
|
||||
"KC_TRNS",
|
||||
"KC_ESC",
|
||||
"KC_A",
|
||||
"KC_R",
|
||||
"KC_S",
|
||||
|
@ -87,12 +87,12 @@
|
|||
"KC_DOT",
|
||||
"KC_SLSH",
|
||||
"KC_LGUI",
|
||||
"MO(2)",
|
||||
"ANY(TL_LOWR)",
|
||||
"KC_LCTL",
|
||||
"KC_ENT",
|
||||
"KC_SPC",
|
||||
"KC_RALT",
|
||||
"MO(3)"
|
||||
"ANY(TL_UPPR)"
|
||||
],
|
||||
[
|
||||
"ANY(ALT_TAB)",
|
||||
|
@ -201,13 +201,13 @@
|
|||
"ANY(DM_PLY1)",
|
||||
"ANY(DM_RSTP)",
|
||||
"ANY(DM_REC1)",
|
||||
"KC_NO",
|
||||
"QK_BOOT",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_LSFT",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"ANY(DM_PLY2)",
|
||||
|
@ -216,9 +216,9 @@
|
|||
"RGB_TOG",
|
||||
"RGB_MOD",
|
||||
"RGB_M_R",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"QK_BOOT",
|
||||
"KC_LCTL",
|
||||
"KC_LALT",
|
||||
"KC_LSFT",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_ENT",
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
*/
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_split_3x6_3(KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_PGUP, KC_PGDN, KC_ESC, KC_A, KC_R, KC_S, KC_T, LALT_T(KC_G), LALT_T(KC_M), KC_N, KC_E, KC_I, KC_O, MO(4), KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_LGUI, MO(2), KC_LCTL, KC_ENT, KC_SPC, KC_RALT, MO(3)),
|
||||
[1] = LAYOUT_split_3x6_3(KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_PGUP, KC_PGDN, KC_TRNS, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, DF(0), KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_LGUI, MO(2), KC_LCTL, KC_ENT, KC_SPC, KC_RALT, MO(3)),
|
||||
[0] = LAYOUT_split_3x6_3(KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_PGUP, KC_PGDN, KC_ESC, KC_A, KC_R, KC_S, KC_T, LALT_T(KC_G), LALT_T(KC_M), KC_N, KC_E, KC_I, KC_O, MO(4), KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_LGUI, TL_LOWR, KC_LCTL, KC_ENT, KC_SPC, KC_RALT, TL_UPPR),
|
||||
[1] = LAYOUT_split_3x6_3(KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_PGUP, KC_PGDN, KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, DF(0), KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_LGUI, TL_LOWR, KC_LCTL, KC_ENT, KC_SPC, KC_RALT, TL_UPPR),
|
||||
[2] = LAYOUT_split_3x6_3(ALT_TAB, KC_PERC, KC_HASH, KC_EXLM, KC_LT, KC_GT, KC_NO, KC_NO, KC_NO, KC_NO, KC_HOME, KC_END, KC_NO, KC_MINS, KC_EQL, KC_ASTR, KC_LBRC, KC_RBRC, KC_QUOT, KC_GRV, KC_SCLN, KC_NO, KC_UP, KC_NO, KC_LSFT, KC_BSLS, KC_AMPR, KC_AT, KC_LPRN, KC_RPRN, KC_DLR, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_LCTL, KC_ENT, KC_BSPC, KC_LALT, KC_TRNS),
|
||||
[3] = LAYOUT_split_3x6_3(KC_NO, KC_NO, KC_0, KC_7, KC_8, KC_9, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_4, KC_5, KC_6, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_LSFT, KC_NO, KC_NO, KC_1, KC_2, KC_3, KC_NO, KC_NO, KC_COMM, KC_DOT, KC_NO, KC_LSFT, KC_TRNS, KC_LCTL, KC_ENT, KC_BSPC, KC_LALT, KC_TRNS),
|
||||
[4] = LAYOUT_split_3x6_3(KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, DF(1), KC_NO, KC_NO, DM_PLY1, DM_RSTP, DM_REC1, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO, KC_NO, DM_PLY2, DM_RSTP, DM_REC2, RGB_TOG, RGB_MOD, RGB_M_R, KC_NO, KC_NO, QK_BOOT, KC_TRNS, KC_TRNS, KC_ENT, KC_BSPC, KC_TRNS, KC_TRNS)
|
||||
[4] = LAYOUT_split_3x6_3(KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, DF(1), KC_NO, KC_NO, DM_PLY1, DM_RSTP, DM_REC1, QK_BOOT, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_LSFT, KC_NO, KC_NO, DM_PLY2, DM_RSTP, DM_REC2, RGB_TOG, RGB_MOD, RGB_M_R, KC_LCTL, KC_LALT, KC_LSFT, KC_TRNS, KC_TRNS, KC_ENT, KC_BSPC, KC_TRNS, KC_TRNS)
|
||||
};
|
||||
|
||||
#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
|
||||
|
|
9
readme.org
Normal file
9
readme.org
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
#+begin_src shell
|
||||
cd qmk_firmware/
|
||||
cd keyboards/crkbd/keymaps/adam-colemak/
|
||||
|
||||
qmk json2c crkbd_rev1_layout_split_3x6_3_mine.json -o keymap-json.c
|
||||
qmk clean ; qmk compile -kb crkbd/r2g
|
||||
qmk flash -kb crkbd/r2g ; qmk flash -kb crkbd/r2g
|
||||
#+end_src
|
Loading…
Reference in a new issue