Skip to content

Commit

Permalink
Shorten encoder KCs
Browse files Browse the repository at this point in the history
  • Loading branch information
plodah committed Dec 9, 2024
1 parent 5861947 commit 8761f25
Show file tree
Hide file tree
Showing 16 changed files with 195 additions and 195 deletions.
24 changes: 12 additions & 12 deletions keyboards/keychron/q10/iso_encoder/keymaps/plodah/keymap.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@
"keycodes": [
{ "key": "PL_ALTTAB" },
{ "key": "PL_ALTSTAB" },
{ "key": "PL_ENC_CCW" },
{ "key": "PL_ENC_CW" },
{ "key": "PL_ENC_PRS" },
{ "key": "PL_EC_CCW" },
{ "key": "PL_EC_CW" },
{ "key": "PL_EC_PR" },
{ "key": "PL_MSJG" },
{ "key": "PL_QFTR" },
{ "key": "PL_QRGB"},
Expand All @@ -137,8 +137,8 @@
"encoders": [
[
{
"ccw": "PL_ENC_CCW",
"cw": "PL_ENC_CW"
"ccw": "PL_EC_CCW",
"cw": "PL_EC_CW"
}
],
[
Expand All @@ -149,20 +149,20 @@
],
[
{
"ccw": "PL_ENC_CCW",
"cw": "PL_ENC_CW"
"ccw": "PL_EC_CCW",
"cw": "PL_EC_CW"
}
],
[
{
"ccw": "PL_ENC_CCW",
"cw": "PL_ENC_CW"
"ccw": "PL_EC_CCW",
"cw": "PL_EC_CW"
}
]
],
"layers": [
[
"PL_ENC_PRS", "KC_ESC", "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_PSCR", "KC_DEL",
"PL_EC_PR", "KC_ESC", "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_PSCR", "KC_DEL",
"MC_0", "KC_GRV", "KC_1", "KC_2", "KC_3", "KC_4", "KC_5", "KC_6", "KC_7", "KC_8", "KC_9", "KC_0", "KC_MINS", "KC_EQL", "KC_BSPC", "KC_HOME",
"MC_1", "KC_TAB", "KC_Q", "KC_W", "KC_E", "KC_R", "KC_T", "KC_Y", "KC_U", "KC_I", "KC_O", "KC_P", "KC_LBRC", "KC_RBRC", "KC_PGUP",
"MC_2", "LT(3,KC_BSPC)", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "KC_J", "KC_K", "KC_L", "KC_SCLN", "KC_QUOT", "KC_NUHS", "KC_ENT", "KC_PGDN",
Expand All @@ -178,15 +178,15 @@
"KC_HOME", "KC_LCTL", "KC_LGUI", "KC_LALT", "KC_SPC", "KC_RALT", "KC_SPC", "MO(3)", "KC_LEFT", "KC_DOWN", "KC_RGHT"
],
[
"PL_ENC_PRS", "_______", "KC_F13", "KC_F14", "KC_F15", "KC_F16", "KC_F17", "KC_F18", "KC_F19", "KC_F20", "KC_F21", "KC_F22", "KC_F23", "KC_F24", "_______", "_______",
"PL_EC_PR", "_______", "KC_F13", "KC_F14", "KC_F15", "KC_F16", "KC_F17", "KC_F18", "KC_F19", "KC_F20", "KC_F21", "KC_F22", "KC_F23", "KC_F24", "_______", "_______",
"PL_MSJG", "MC_0", "MC_1", "MC_2", "MC_3", "MC_4", "MC_5", "MC_6", "MC_7", "MC_8", "PL_QFTR", "PL_QRGB", "PL_QVER", "QK_MAKE", "_______", "KC_END",
"_______", "KC_ENT", "KC_PGUP", "KC_UP", "KC_PGDN", "_______", "_______", "_______", "_______", "_______", "_______", "KC_PSCR", "_______", "_______", "_______",
"_______", "KC_CAPS", "KC_LEFT", "KC_DOWN", "KC_RGHT", "KC_ENT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "_______", "_______", "CW_TOGG", "KC_PGUP",
"_______", "_______", "GU_TOGG", "_______", "KC_SPC", "_______", "KC_SPC", "KC_APP", "KC_HOME", "KC_PGDN", "KC_END"
],
[
"PL_ENC_PRS", "_______", "KC_BRID", "KC_BRIU", "LGUI(KC_TAB)", "LGUI(KC_E)", "RGB_VAD", "RGB_VAI", "KC_MPRV", "KC_MPLY", "KC_MNXT", "KC_MUTE", "KC_VOLD", "KC_VOLU", "_______", "_______",
"PL_EC_PR", "_______", "KC_BRID", "KC_BRIU", "G(KC_TAB)", "G(KC_E)", "RGB_VAD", "RGB_VAI", "KC_MPRV", "KC_MPLY", "KC_MNXT", "KC_MUTE", "KC_VOLD", "KC_VOLU", "_______", "_______",
"_______", "_______", "KC_P1", "KC_P2", "KC_P3", "KC_P4", "KC_P5", "KC_P6", "KC_P7", "KC_P8", "KC_P9", "KC_P0", "_______", "_______", "_______", "KC_END",
"_______", "RGB_TOG", "RGB_MOD", "RGB_VAI", "RGB_HUI", "RGB_SAI", "RGB_SPI", "_______", "_______", "_______", "_______", "KC_PSCR", "_______", "_______", "_______",
"PL_QVER", "KC_CAPS", "RGB_RMOD", "RGB_VAD", "RGB_HUD", "RGB_SAD", "RGB_SPD", "_______", "_______", "DM_RSTP", "DM_REC1", "DM_REC2", "_______", "_______", "_______", "_______",
Expand Down
18 changes: 9 additions & 9 deletions keyboards/keychron/q10/iso_encoder/keymaps/plodahc/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
enum keymap_keycodes {
PL_ALTTAB = QK_USER_0,
PL_ALTSTAB,
PL_ENC_CCW,
PL_ENC_CW,
PL_ENC_PRS,
PL_EC_CCW,
PL_EC_CW,
PL_EC_PR,
PL_MSJG,
PL_QFTR,
PL_QRGB,
Expand All @@ -22,17 +22,17 @@ enum {
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_iso_90(PL_ENC_PRS, TD(TD_ESC_RAGEQUIT), 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_PSCR, KC_DEL, MC_0, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, MC_1, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_PGUP, MC_2, LT(3,KC_BSPC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGDN, KC_END, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_HOME, KC_LCTL, KC_LGUI, KC_LALT, LT(2,KC_SPC), KC_RALT, LT(3,KC_SPC), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
[0] = LAYOUT_iso_90(PL_EC_PR, TD(TD_ESC_RAGEQUIT), 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_PSCR, KC_DEL, MC_0, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, MC_1, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_PGUP, MC_2, LT(3,KC_BSPC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGDN, KC_END, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_HOME, KC_LCTL, KC_LGUI, KC_LALT, LT(2,KC_SPC), KC_RALT, LT(3,KC_SPC), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
[1] = LAYOUT_iso_90(KC_MUTE, TD(TD_ESC_RAGEQUIT), 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_PSCR, KC_DEL, MC_0, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, MC_1, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_PGUP, MC_2, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGDN, KC_END, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_HOME, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_SPC, MO(3), KC_LEFT, KC_DOWN, KC_RGHT),
[2] = LAYOUT_iso_90(PL_ENC_PRS, _______, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, _______, _______, PL_MSJG, MC_0, MC_1, MC_2, MC_3, MC_4, MC_5, MC_6, MC_7, MC_8, PL_QFTR, PL_QRGB, PL_QVER, QK_MAKE, _______, KC_END, _______, KC_ENT, KC_PGUP, KC_UP, KC_PGDN, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, _______, _______, KC_CAPS, KC_LEFT, KC_DOWN, KC_RGHT, KC_ENT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, _______, _______, CW_TOGG, KC_PGUP, _______, _______, GU_TOGG, _______, KC_SPC, _______, KC_SPC, KC_APP, KC_HOME, KC_PGDN, KC_END),
[3] = LAYOUT_iso_90(PL_ENC_PRS, _______, KC_BRID, KC_BRIU, LGUI(KC_TAB), LGUI(KC_E), RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, _______, _______, KC_P1, KC_P2, KC_P3, KC_P4, KC_P5, KC_P6, KC_P7, KC_P8, KC_P9, KC_P0, _______, _______, _______, KC_END, _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, KC_PSCR, _______, _______, _______, PL_QVER, KC_CAPS, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, DM_RSTP, DM_REC1, DM_REC2, _______, _______, _______, _______, QK_MAKE, _______, _______, _______, _______, _______, S(C(KC_V)), _______, _______, NK_TOGG, _______, _______, DM_PLY1, DM_PLY2, _______, KC_VOLU, _______, _______, GU_TOGG, _______, KC_SPC, _______, KC_SPC, KC_APP, KC_HOME, KC_VOLD, KC_END)
[2] = LAYOUT_iso_90(PL_EC_PR, _______, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, _______, _______, PL_MSJG, MC_0, MC_1, MC_2, MC_3, MC_4, MC_5, MC_6, MC_7, MC_8, PL_QFTR, PL_QRGB, PL_QVER, QK_MAKE, _______, KC_END, _______, KC_ENT, KC_PGUP, KC_UP, KC_PGDN, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, _______, _______, KC_CAPS, KC_LEFT, KC_DOWN, KC_RGHT, KC_ENT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, _______, _______, CW_TOGG, KC_PGUP, _______, _______, GU_TOGG, _______, KC_SPC, _______, KC_SPC, KC_APP, KC_HOME, KC_PGDN, KC_END),
[3] = LAYOUT_iso_90(PL_EC_PR, _______, KC_BRID, KC_BRIU, LGUI(KC_TAB), LGUI(KC_E), RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, _______, _______, KC_P1, KC_P2, KC_P3, KC_P4, KC_P5, KC_P6, KC_P7, KC_P8, KC_P9, KC_P0, _______, _______, _______, KC_END, _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, KC_PSCR, _______, _______, _______, PL_QVER, KC_CAPS, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, DM_RSTP, DM_REC1, DM_REC2, _______, _______, _______, _______, QK_MAKE, _______, _______, _______, _______, _______, S(C(KC_V)), _______, _______, NK_TOGG, _______, _______, DM_PLY1, DM_PLY2, _______, KC_VOLU, _______, _______, GU_TOGG, _______, KC_SPC, _______, KC_SPC, KC_APP, KC_HOME, KC_VOLD, KC_END)
};

#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = {ENCODER_CCW_CW(PL_ENC_CCW, PL_ENC_CW)},
[0] = {ENCODER_CCW_CW(PL_EC_CCW, PL_EC_CW)},
[1] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
[2] = {ENCODER_CCW_CW(PL_ENC_CCW, PL_ENC_CW)},
[3] = {ENCODER_CCW_CW(PL_ENC_CCW, PL_ENC_CW)}
[2] = {ENCODER_CCW_CW(PL_EC_CCW, PL_EC_CW)},
[3] = {ENCODER_CCW_CW(PL_EC_CCW, PL_EC_CW)}
};
#endif // defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
24 changes: 12 additions & 12 deletions keyboards/keychron/q1v1/iso_encoder/keymaps/plodah/keymap.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,17 @@
"keycodes": [
{ "key": "PL_ALTTAB" },
{ "key": "PL_ALTSTAB" },
{ "key": "PL_ENC_CCW" },
{ "key": "PL_ENC_CW" },
{ "key": "PL_ENC_PRS" },
{ "key": "PL_EC_CCW" },
{ "key": "PL_EC_CW" },
{ "key": "PL_EC_PR" },
{ "key": "PL_MSJG" },
{ "key": "PL_QVER" }
],
"encoders": [
[
{
"ccw": "PL_ENC_CCW",
"cw": "PL_ENC_CW"
"ccw": "PL_EC_CCW",
"cw": "PL_EC_CW"
}
],
[
Expand All @@ -150,20 +150,20 @@
],
[
{
"ccw": "PL_ENC_CCW",
"cw": "PL_ENC_CW"
"ccw": "PL_EC_CCW",
"cw": "PL_EC_CW"
}
],
[
{
"ccw": "PL_ENC_CCW",
"cw": "PL_ENC_CW"
"ccw": "PL_EC_CCW",
"cw": "PL_EC_CW"
}
]
],
"layers": [
[
"KC_ESC", "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_DEL", "PL_ENC_PRS",
"KC_ESC", "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_DEL", "PL_EC_PR",
"KC_GRV", "KC_1", "KC_2", "KC_3", "KC_4", "KC_5", "KC_6", "KC_7", "KC_8", "KC_9", "KC_0", "KC_MINS", "KC_EQL", "KC_BSPC", "KC_PGUP",
"KC_TAB", "KC_Q", "KC_W", "KC_E", "KC_R", "KC_T", "KC_Y", "KC_U", "KC_I", "KC_O", "KC_P", "KC_LBRC", "KC_RBRC", "KC_PGDN",
"LT(3,KC_BSPC)", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "KC_J", "KC_K", "KC_L", "KC_SCLN", "KC_QUOT", "KC_NUHS", "KC_ENT", "KC_HOME",
Expand All @@ -179,15 +179,15 @@
"KC_LCTL", "KC_LGUI", "KC_LALT", "KC_SPC", "KC_RALT", "MO(3)", "KC_RCTL", "KC_LEFT", "KC_DOWN", "KC_RGHT"
],
[
"_______", "KC_BRID", "KC_BRIU", "G(KC_TAB)", "G(KC_E)", "RGB_VAD", "RGB_VAI", "KC_MPRV", "KC_MPLY", "KC_MNXT", "KC_MUTE", "KC_VOLD", "KC_VOLU", "_______", "PL_ENC_PRS",
"_______", "KC_BRID", "KC_BRIU", "G(KC_TAB)", "G(KC_E)", "RGB_VAD", "RGB_VAI", "KC_MPRV", "KC_MPLY", "KC_MNXT", "KC_MUTE", "KC_VOLD", "KC_VOLU", "_______", "PL_EC_PR",
"_______", "KC_P1", "KC_P2", "KC_P3", "KC_P4", "KC_P5", "KC_P6", "KC_P7", "KC_P8", "KC_P9", "KC_P0", "_______", "_______", "_______", "KC_END",
"KC_ENT", "KC_PGUP", "KC_UP", "KC_PGDN", "_______", "_______", "_______", "_______", "_______", "_______", "KC_PSCR", "_______", "_______", "C(KC_F4)",
"KC_CAPS", "KC_LEFT", "KC_DOWN", "KC_RGHT", "KC_ENT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "S(C(KC_T))",
"_______", "_______", "_______", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "_______", "_______", "_______", "KC_PGUP",
"_______", "GU_TOGG", "_______", "KC_SPC", "_______", "_______", "_______", "KC_HOME", "KC_PGDN", "KC_END"
],
[
"_______", "KC_F13", "KC_F14", "KC_F15", "KC_F16", "KC_F17", "KC_F18", "KC_F19", "KC_F20", "KC_F21", "KC_F22", "KC_F23", "KC_F24", "_______", "PL_ENC_PRS",
"_______", "KC_F13", "KC_F14", "KC_F15", "KC_F16", "KC_F17", "KC_F18", "KC_F19", "KC_F20", "KC_F21", "KC_F22", "KC_F23", "KC_F24", "_______", "PL_EC_PR",
"MC_0", "MC_1", "MC_2", "MC_3", "MC_4", "MC_5", "MC_6", "MC_7", "MC_8", "MC_9", "MC_10", "PL_QVER", "QK_MAKE", "_______", "PL_MSJG",
"RGB_TOG", "RGB_MOD", "RGB_VAI", "RGB_HUI", "RGB_SAI", "RGB_SPI", "_______", "_______", "_______", "_______", "KC_PSCR", "_______", "_______", "_______",
"KC_CAPS", "RGB_RMOD", "RGB_VAD", "RGB_HUD", "RGB_SAD", "RGB_SPD", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "KC_END",
Expand Down
Loading

0 comments on commit 8761f25

Please sign in to comment.