From fb0d12869f32dbec784e2dc8e61df69603e129ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=95=E3=82=A3=E3=83=AB=E3=82=BF=E3=83=BC=E3=83=9A?= =?UTF-8?q?=E3=83=BC=E3=83=91=E3=83=BC?= <76888457+filterpaper@users.noreply.github.com> Date: Thu, 2 May 2024 15:45:53 +0800 Subject: [PATCH] Add Alt Backspace --- features/combos.inc | 6 +++--- layout.h | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/features/combos.inc b/features/combos.inc index 5b661cbd..e7ae572a 100644 --- a/features/combos.inc +++ b/features/combos.inc @@ -10,14 +10,14 @@ ACTN(swap_r, swap_hands_toggle(), TH_M, TH_COMM, TH_DOT) #endif ACTN(tog_ac, autocorrect_toggle(), KC_U, KC_I, KC_O) +COMB(vol_up, KC_VOLU, KC_P, HM_QUOT) +COMB(vol_dn, KC_VOLD, HM_QUOT, TH_SLSH) + // Macros SSTR(vi_quit, ":q!", KC_Q, KC_W) SSTR(vi_save, ":x", KC_Z, KC_X) SSTR(dir_up, "../", TH_DOT, TH_SLSH) -COMB(vol_up, KC_VOLU, KC_P, HM_QUOT) -COMB(vol_dn, KC_VOLD, HM_QUOT, TH_SLSH) - // Navigation COMB(arr_up, KC_UP, KC_U, KC_I) COMB(arr_dn, KC_DOWN, HM_J, HM_K) diff --git a/layout.h b/layout.h index 9a1e6899..d8df7494 100644 --- a/layout.h +++ b/layout.h @@ -44,6 +44,7 @@ enum layers { BSE, CMK, NUM, SYM, FNC }; #define LCA_ENT LCA_T(KC_ENT) #define SFT_SPC RSFT_T(KC_SPC) #define NUM_BSP LT(NUM,KC_BSPC) +#define ALT_BSP A(KC_BSPC) // Default 3x5_2 split layout #define _BASE \ @@ -95,7 +96,7 @@ enum layers { BSE, CMK, NUM, SYM, FNC }; _______, KC_LBRC, KC_LCBR, KC_RCBR, _______, KC_CIRC, KC_LPRN, KC_RPRN, KC_RBRC, KC_TILD, \ KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_ASTR, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, \ _______, _______, KC_LT, KC_GT, _______, KC_AMPR, KC_UNDS, KC_PLUS, KC_PIPE, _______, \ - _______, _______, _______, _______ + _______, _______, _______, ALT_BSP /*╭────────┬────────┬────────┬────────┬────────╮ ╭────────┬────────┬────────┬────────┬────────╮ │ │ [ │ { │ } │ │ │ ^ │ ( │ ) │ ] │ ~ │ ├────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┤ @@ -103,7 +104,7 @@ enum layers { BSE, CMK, NUM, SYM, FNC }; ├────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┤ │ │ │ < │ > │ │ │ & │ _ │ + │ │ │ │ ╰────────┴────────┴────────┼────────┼────────┤ ├────────┼────────┼────────┴────────┴────────╯ - │ │ │ │ │ │ + │ │ │ │ │ALT BSPC│ ╰────────┴────────╯ ╰────────┴────────╯*/ #define _FUNC \