Cleanup and small fixes
This commit is contained in:
parent
bce920b4f9
commit
8787cfd1d0
1 changed files with 24 additions and 22 deletions
|
@ -20,12 +20,14 @@ enum {
|
|||
#define LT_LNUM_ESC LT(_NUMBER, KC_ESC)
|
||||
#define LT_TAB_FUNC LT(_FUNCTION, KC_TAB)
|
||||
|
||||
#define MO_FUNC MO(_FUNCTION)
|
||||
|
||||
enum {
|
||||
TD_QUOT = 0,
|
||||
QUOT = 0,
|
||||
};
|
||||
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_QUOT] = ACTION_TAP_DANCE_DOUBLE(KC_QUOT, S(KC_QUOT)),
|
||||
[QUOT] = ACTION_TAP_DANCE_DOUBLE(KC_QUOT, S(KC_QUOT)),
|
||||
};
|
||||
|
||||
enum planck_keycodes {
|
||||
|
@ -48,7 +50,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
[_DEFAULT] = LAYOUT_planck_grid(
|
||||
KC_Q, KC_D, KC_R, KC_W, KC_B, O_SFT_CTL, O_SFT_GUI, KC_J, KC_F, KC_U, KC_P, KC_SCLN,
|
||||
KC_A, KC_S, KC_H, KC_T, KC_G, O_SFT, O_SFT, KC_Y, KC_N, KC_E, KC_O, KC_I,
|
||||
KC_Z, KC_X, KC_M, KC_C, KC_V, KC_ENT, KC_ENT, KC_K, KC_L, KC_COMM, KC_DOT, TD(TD_QUOT),
|
||||
KC_Z, KC_X, KC_M, KC_C, KC_V, KC_ENT, KC_ENT, KC_K, KC_L, KC_COMM, KC_DOT, TD(QUOT),
|
||||
KC_LCTL, KC_LALT, KC_LGUI, LT_LNUM_ESC, LT_LSFT_SPC, LT_TAB_FUNC, KC_BSPC, LT_RSFT_BSPC, LT_SYM_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
||||
),
|
||||
|
||||
|
@ -78,14 +80,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | Z | X | M | C | V | ENT | ENT | K | L | / | ? | " |
|
||||
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | LCTL | LALT | LGUI | ESC |[LSFT]| TAB | BSPC | - | LEFT | DOWN | UP | RGHT |
|
||||
* | LCTL | LALT | LGUI | ESC |[LSFT]| TAB | DEL | - | LEFT | DOWN | UP | RGHT |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_LSHIFT] = LAYOUT_planck_grid(
|
||||
S(KC_Q), S(KC_D), S(KC_R), S(KC_W), S(KC_B), _______, _______, S(KC_J), S(KC_F), S(KC_U), S(KC_P), S(KC_SCLN),
|
||||
S(KC_A), S(KC_S), S(KC_H), S(KC_T), S(KC_G), _______, _______, S(KC_Y), S(KC_N), S(KC_E), S(KC_O), S(KC_I),
|
||||
S(KC_Z), S(KC_X), S(KC_M), S(KC_C), S(KC_V), _______, _______, S(KC_K), S(KC_L), KC_SLSH, S(KC_SLSH), S(TD_QUOT),
|
||||
_______, _______, _______, _______, _______, _______, KC_DEL, KC_MINS, KC_LEFT, _______, _______, _______
|
||||
S(KC_Q), S(KC_D), S(KC_R), S(KC_W), S(KC_B), _______, _______, S(KC_J), S(KC_F), S(KC_U), S(KC_P), KC_COLN,
|
||||
S(KC_A), S(KC_S), S(KC_H), S(KC_T), S(KC_G), _______, _______, S(KC_Y), S(KC_N), S(KC_E), S(KC_O), S(KC_I),
|
||||
S(KC_Z), S(KC_X), S(KC_M), S(KC_C), S(KC_V), S(KC_ENT), S(KC_ENT), S(KC_K), S(KC_L), KC_SLSH, KC_QUES, KC_DQUO,
|
||||
_______, _______, _______, S(KC_ESC), _______, S(KC_TAB), KC_DEL, KC_MINS, S(KC_LEFT), S(KC_DOWN), S(KC_UP), S(KC_RGHT)
|
||||
),
|
||||
|
||||
/* Right Shift
|
||||
|
@ -96,14 +98,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | Z | X | M | C | V | ENT | ENT | K | L | ` | ~ | " |
|
||||
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | LCTL | LALT | LGUI | ESC | _ | TAB | BSPC |[RSFT]| LEFT | DOWN | UP | RGHT |
|
||||
* | LCTL | LALT | LGUI | ESC | _ | TAB | DEL |[RSFT]| LEFT | DOWN | UP | RGHT |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_RSHIFT] = LAYOUT_planck_grid(
|
||||
S(KC_Q), S(KC_D), S(KC_R), S(KC_W), S(KC_B), _______, _______, S(KC_J), S(KC_F), S(KC_U), S(KC_P), S(KC_SCLN),
|
||||
S(KC_A), S(KC_S), S(KC_H), S(KC_T), S(KC_G), _______, _______, S(KC_Y), S(KC_N), S(KC_E), S(KC_O), S(KC_I),
|
||||
S(KC_Z), S(KC_X), S(KC_M), S(KC_C), S(KC_V), _______, _______, S(KC_K), S(KC_L), KC_GRV, S(KC_GRV), S(TD_QUOT),
|
||||
_______, _______, _______, _______, S(KC_MINS), _______, KC_DEL, _______, KC_LEFT, _______, _______, _______
|
||||
S(KC_Q), S(KC_D), S(KC_R), S(KC_W), S(KC_B), _______, _______, S(KC_J), S(KC_F), S(KC_U), S(KC_P), KC_COLN,
|
||||
S(KC_A), S(KC_S), S(KC_H), S(KC_T), S(KC_G), _______, _______, S(KC_Y), S(KC_N), S(KC_E), S(KC_O), S(KC_I),
|
||||
S(KC_Z), S(KC_X), S(KC_M), S(KC_C), S(KC_V), S(KC_ENT), S(KC_ENT), S(KC_K), S(KC_L), KC_GRV, KC_TILD, KC_DQUO,
|
||||
_______, _______, _______, S(KC_ESC), KC_UNDS, S(KC_TAB), KC_DEL, _______, S(KC_LEFT), S(KC_DOWN), S(KC_UP), S(KC_RGHT)
|
||||
),
|
||||
|
||||
/* Left Number
|
||||
|
@ -114,14 +116,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | | x | b | [ | ] | ENT | ENT | a | 1 | 2 | 3 | b |
|
||||
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | LCTL | LALT | LGUI | ESC | LSFT | TAB | BSPC | RSFT | 0 | . | u | i |
|
||||
* | LCTL | LALT | LGUI |[LNUM]| LSFT | TAB | BSPC | RSFT | 0 | . | u | i |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_NUMBER] = LAYOUT_planck_grid(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_LCBR, KC_RCBR, _______, _______, KC_E, KC_7, KC_8, KC_9, KC_F,
|
||||
XXXXXXX, S(KC_COMM), S(KC_DOT), KC_LPRN, KC_RPRN, _______, _______, KC_C, KC_4, KC_5, KC_6, KC_D,
|
||||
XXXXXXX, KC_X, KC_B, KC_LBRC, KC_RBRC, _______, _______, KC_A, KC_1, KC_2, KC_3, KC_B,
|
||||
_______, _______, _______, _______, KC_LSFT, _______, _______, KC_RSFT, KC_0, KC_DOT, KC_U, KC_I
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_LCBR, KC_RCBR, _______, _______, KC_E, KC_7, KC_8, KC_9, KC_F,
|
||||
XXXXXXX, KC_LABK, KC_RABK, KC_LPRN, KC_RPRN, _______, _______, KC_C, KC_4, KC_5, KC_6, KC_D,
|
||||
XXXXXXX, KC_X, KC_B, KC_LBRC, KC_RBRC, _______, _______, KC_A, KC_1, KC_2, KC_3, KC_B,
|
||||
_______, _______, _______, _______, KC_LSFT, _______, _______, KC_RSFT, KC_0, KC_DOT, KC_U, KC_I
|
||||
),
|
||||
|
||||
/* Game
|
||||
|
@ -136,10 +138,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_GAME] = LAYOUT_planck_grid(
|
||||
KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_SLSH,
|
||||
KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||
KC_LCTL, KC_Z, KC_X, KC_C, KC_SPC, MO(_FUNCTION), KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT
|
||||
KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_SLSH,
|
||||
KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||
KC_LCTL, KC_Z, KC_X, KC_C, KC_SPC, MO_FUNC, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT
|
||||
),
|
||||
|
||||
/* Function
|
||||
|
|
Loading…
Reference in a new issue