add alt-layer
This commit is contained in:
parent
2081009376
commit
32ff604b00
2 changed files with 6 additions and 1 deletions
|
@ -55,9 +55,9 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// combos; https://github.com/qmk/qmk_firmware/blob/master/docs/feature_combo.md
|
// combos; https://github.com/qmk/qmk_firmware/blob/master/docs/feature_combo.md
|
||||||
enum combos {
|
enum combos {
|
||||||
|
C_ALT,
|
||||||
C_KA,
|
C_KA,
|
||||||
C_KK,
|
C_KK,
|
||||||
C_ESC,
|
C_ESC,
|
||||||
|
@ -66,6 +66,7 @@ enum combos {
|
||||||
C_WE // Windows Explorer
|
C_WE // Windows Explorer
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM alt_combo[] = {LCTL_T(KC_E), KC_I, COMBO_END};
|
||||||
const uint16_t PROGMEM ka_combo[] = {KC_R, LSFT_T(KC_T), COMBO_END};
|
const uint16_t PROGMEM ka_combo[] = {KC_R, LSFT_T(KC_T), COMBO_END};
|
||||||
const uint16_t PROGMEM kk_combo[] = {LSFT_T(KC_N), KC_I, COMBO_END};
|
const uint16_t PROGMEM kk_combo[] = {LSFT_T(KC_N), KC_I, COMBO_END};
|
||||||
const uint16_t PROGMEM esc_combo[] = {LCTL_T(KC_S), LSFT_T(KC_T), COMBO_END};
|
const uint16_t PROGMEM esc_combo[] = {LCTL_T(KC_S), LSFT_T(KC_T), COMBO_END};
|
||||||
|
@ -74,6 +75,7 @@ const uint16_t PROGMEM sv_combo[] = {LCTL_T(KC_S), LT(0,KC_C), COMBO_END}
|
||||||
const uint16_t PROGMEM we_combo[] = {LT(0,KC_W), LCTL_T(KC_E), COMBO_END};
|
const uint16_t PROGMEM we_combo[] = {LT(0,KC_W), LCTL_T(KC_E), COMBO_END};
|
||||||
|
|
||||||
combo_t key_combos[] = {
|
combo_t key_combos[] = {
|
||||||
|
[C_ALT] = COMBO(alt_combo, KC_LALT),
|
||||||
[C_KA] = COMBO(ka_combo, LCTL(LALT(KC_A))),
|
[C_KA] = COMBO(ka_combo, LCTL(LALT(KC_A))),
|
||||||
[C_KK] = COMBO(kk_combo, LCTL(LALT(KC_K))),
|
[C_KK] = COMBO(kk_combo, LCTL(LALT(KC_K))),
|
||||||
[C_ESC] = COMBO(esc_combo, KC_ESC),
|
[C_ESC] = COMBO(esc_combo, KC_ESC),
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
// combos; https://github.com/qmk/qmk_firmware/blob/master/docs/feature_combo.md
|
// combos; https://github.com/qmk/qmk_firmware/blob/master/docs/feature_combo.md
|
||||||
enum combos {
|
enum combos {
|
||||||
|
C_ALT,
|
||||||
C_KA,
|
C_KA,
|
||||||
C_KK,
|
C_KK,
|
||||||
C_ESC,
|
C_ESC,
|
||||||
|
@ -11,6 +12,7 @@ enum combos {
|
||||||
C_WE // Windows Explorer
|
C_WE // Windows Explorer
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM alt_combo[] = {LCTL_T(KC_E), KC_I, COMBO_END};
|
||||||
const uint16_t PROGMEM ka_combo[] = {KC_R, LSFT_T(KC_T), COMBO_END};
|
const uint16_t PROGMEM ka_combo[] = {KC_R, LSFT_T(KC_T), COMBO_END};
|
||||||
const uint16_t PROGMEM kk_combo[] = {LSFT_T(KC_N), KC_I, COMBO_END};
|
const uint16_t PROGMEM kk_combo[] = {LSFT_T(KC_N), KC_I, COMBO_END};
|
||||||
const uint16_t PROGMEM esc_combo[] = {LCTL_T(KC_S), LSFT_T(KC_T), COMBO_END};
|
const uint16_t PROGMEM esc_combo[] = {LCTL_T(KC_S), LSFT_T(KC_T), COMBO_END};
|
||||||
|
@ -19,6 +21,7 @@ const uint16_t PROGMEM sv_combo[] = {LCTL_T(KC_S), LT(0,KC_C), COMBO_END}
|
||||||
const uint16_t PROGMEM we_combo[] = {LT(0,KC_W), LCTL_T(KC_E), COMBO_END};
|
const uint16_t PROGMEM we_combo[] = {LT(0,KC_W), LCTL_T(KC_E), COMBO_END};
|
||||||
|
|
||||||
combo_t key_combos[] = {
|
combo_t key_combos[] = {
|
||||||
|
[C_ALT] = COMBO(alt_combo, KC_LALT),
|
||||||
[C_KA] = COMBO(ka_combo, LCTL(LALT(KC_A))),
|
[C_KA] = COMBO(ka_combo, LCTL(LALT(KC_A))),
|
||||||
[C_KK] = COMBO(kk_combo, LCTL(LALT(KC_K))),
|
[C_KK] = COMBO(kk_combo, LCTL(LALT(KC_K))),
|
||||||
[C_ESC] = COMBO(esc_combo, KC_ESC),
|
[C_ESC] = COMBO(esc_combo, KC_ESC),
|
||||||
|
|
Loading…
Reference in a new issue