[keymaps] Edited lily layout to fit physical keycaps (todo: fix oled)
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>master
parent
a151631357
commit
40e43f02c6
|
@ -32,11 +32,12 @@ uint32_t anim_sleep = 0;
|
||||||
uint8_t current_idle_frame = 0;
|
uint8_t current_idle_frame = 0;
|
||||||
uint8_t current_tap_frame = 0;
|
uint8_t current_tap_frame = 0;
|
||||||
|
|
||||||
static long int oled_timeout = 300000;
|
// static long int oled_timeout = 300000;
|
||||||
|
|
||||||
// Layers
|
// Layers
|
||||||
# define _DFLT 0
|
# define _DFLT 0
|
||||||
# define _FUNC 1
|
# define _LWR 1
|
||||||
|
# define _RSE 2
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
@ -44,7 +45,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* ,-----------------------------------------. ,-----------------------------------------.
|
* ,-----------------------------------------. ,-----------------------------------------.
|
||||||
* | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` |
|
* | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` |
|
||||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||||
* | Tab | Q | W | E | R | T | | Y | U | I | O | P | - |
|
* | Tab | Q | W | E | R | T | | Y | U | I | O | P | \ |
|
||||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||||
* |LCTRL | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' |
|
* |LCTRL | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' |
|
||||||
* |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------|
|
* |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------|
|
||||||
|
@ -57,12 +58,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
[_DFLT] = LAYOUT( \
|
[_DFLT] = LAYOUT( \
|
||||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV, \
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV, \
|
||||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, \
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, \
|
||||||
KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
|
KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, 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_RBRC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, \
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LBRC, KC_RBRC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, \
|
||||||
KC_LALT, KC_LGUI, MO(_FUNC), KC_SPC , KC_ENT, MO(_FUNC), KC_BSPC, KC_RALT \
|
KC_LALT, KC_LGUI, MO(_LWR), KC_SPC , KC_ENT, MO(_RSE), KC_BSPC, KC_RALT \
|
||||||
),
|
),
|
||||||
/* FUNC
|
/* LOWER
|
||||||
* ,-----------------------------------------. ,-----------------------------------------.
|
* ,-----------------------------------------. ,-----------------------------------------.
|
||||||
* | F11 | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F12 |
|
* | F11 | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F12 |
|
||||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||||
|
@ -70,19 +71,41 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||||
* | | BRID | BRIU | | | |-------. ,-------| LEFT | DOWN | UP | RIGHT| | |
|
* | | BRID | BRIU | | | |-------. ,-------| LEFT | DOWN | UP | RIGHT| | |
|
||||||
* |------+------+------+------+------+------| MPLAY | | MSTP |------+------+------+------+------+------|
|
* |------+------+------+------+------+------| MPLAY | | MSTP |------+------+------+------+------+------|
|
||||||
* | | | | | | |-------| |-------| = | | | | \ | |
|
* | | | | | | |-------| |-------| = | - | | | | |
|
||||||
* `-----------------------------------------/ / \ \-----------------------------------------'
|
* `-----------------------------------------/ / \ \-----------------------------------------'
|
||||||
* | PRNT | | MUTE | /VOLDWN / \VOLUP \ | MUTE | DEL | |
|
* | PRNT | | | /VOLDWN / \VOLUP \ | MUTE | DEL | |
|
||||||
* | | | |/ / \ \ | | | |
|
* | | | |/ / \ \ | | | |
|
||||||
* `----------------------------' '------''--------------------'
|
* `----------------------------' '------''--------------------'
|
||||||
*/
|
*/
|
||||||
[_FUNC] = LAYOUT( \
|
[_LWR] = LAYOUT( \
|
||||||
KC_F11 , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F12, \
|
KC_F11 , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F12, \
|
||||||
KC_F13 , KC_F14 , KC_F15 , KC_F16 , KC_F17 , KC_F18 , KC_F19 , KC_F20 , KC_F21, KC_F22 , KC_F23 , KC_F24, \
|
KC_F13 , KC_F14 , KC_F15 , KC_F16 , KC_F17 , KC_F18 , KC_F19 , KC_F20 , KC_F21, KC_F22 , KC_F23 , KC_F24, \
|
||||||
_______, KC_BRID, KC_BRIU, _______, _______, _______, KC_LEFT, KC_DOWN , KC_UP , KC_RIGHT, _______, _______,\
|
_______, KC_BRID, KC_BRIU, _______, _______, _______, KC_LEFT, KC_DOWN , KC_UP , KC_RIGHT, _______, _______,\
|
||||||
_______, _______, _______, _______, _______, _______, KC_MPLY, KC_MSTP, KC_EQL , _______ ,_______,_______ , KC_BSLS, _______,\
|
_______, _______, _______, _______, _______, _______, KC_MPLY, KC_MSTP, KC_EQL , KC_MINS ,_______,_______ , _______, _______,\
|
||||||
KC_PSCR, _______, KC_MUTE, KC_VOLD , KC_VOLU, KC_MUTE , KC_DEL, _______ \
|
KC_PSCR, _______, _______, KC_VOLD , KC_VOLU, KC_MUTE , KC_DEL, _______ \
|
||||||
),
|
),
|
||||||
|
/* RISE
|
||||||
|
* ,-----------------------------------------. ,-----------------------------------------.
|
||||||
|
* | | | NUM | | | | | | | | | | |
|
||||||
|
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||||
|
* | | | 7 | 8 | 9 | | | SCRL | PAUS |INSERT| | | |
|
||||||
|
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||||
|
* | | | 4 | 5 | 6 | + |-------. ,-------| LEFT | DOWN | UP | RIGHT| | |
|
||||||
|
* |------+------+------+------+------+------| | | |------+------+------+------+------+------|
|
||||||
|
* | | | 1 | 2 | 3 | ENTR |-------| |-------| | | | | | |
|
||||||
|
* `-----------------------------------------/ / \ \-----------------------------------------'
|
||||||
|
* | | | | / - / \ \ | | | |
|
||||||
|
* | | | |/ / \ \ | | | |
|
||||||
|
* `----------------------------' '------''--------------------'
|
||||||
|
*/
|
||||||
|
[_RSE] = LAYOUT( \
|
||||||
|
_______, _______ , KC_NUM ,_______,_______ ,_______ , _______,_______ ,_______ ,_______,_______ ,_______, \
|
||||||
|
_______, _______, KC_P7 , KC_P8 , KC_P9 ,_______ , KC_SCRL, KC_PAUS, KC_INS , _______, _______,_______, \
|
||||||
|
_______, _______, KC_P4 , KC_P5 , KC_P6 , KC_PPLS, KC_LEFT, KC_DOWN , KC_UP , KC_RIGHT, _______, _______,\
|
||||||
|
_______, _______, KC_P1 , KC_P2 , KC_P3 , KC_PENT, _______, _______, _______, _______ ,_______,_______ , _______, _______,\
|
||||||
|
_______, _______, _______, KC_P0, _______, _______ , _______, _______ \
|
||||||
|
),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef OLED_DRIVER_ENABLE
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
|
Loading…
Reference in New Issue