update combos

This commit is contained in:
♥ Minnie ♥ 2024-03-28 22:04:34 +08:00
parent 109334f9a7
commit 4abc4e6616
3 changed files with 16 additions and 6 deletions

View file

@ -1,11 +1,18 @@
// Dictionary management // Dictionary management
// name result chord keys // name result chord keys
COMB(NE_ESC, KC_ESC, RCTL_T(KC_N), RSFT_T(KC_E)) COMB(NE_ESC, KC_ESC, RCTL_T(KC_N), RSFT_T(KC_E))
COMB(FN_MAGIC, QK_AREP, KC_F, RCTL_T(KC_N)) COMB(SE_CAP, CW_TOGG, LSFT_T(KC_S), RSFT_T(KC_E))
COMB(THUMB_SLEEP, KC_SLEP, LT(NAV, KC_SPC), LSFT_T(KC_ENT))
COMB(FN_MAGIC, QK_AREP, KC_F, RCTL_T(KC_N))
// substitutions // substitutions
SUBS(YP_HOME, "~/", KC_Y, KC_P) SUBS(YP_HOME, "~/", KC_Y, KC_P)
SUBS(FO_UPDIR, "../", KC_F, KC_O) SUBS(FO_UPDIR, "../", KC_F, KC_O)
// toggle layers
TOGG(ST_MOD, MOD, LSFT_T(KC_S), LCTL_T(KC_T))
TOGG(TP_NUM, NUM, LCTL_T(KC_T), KC_P)
/* vim: set filetype=c: */ /* vim: set filetype=c: */

View file

@ -22,6 +22,9 @@
#define ONESHOT_TIMEOUT 3000 #define ONESHOT_TIMEOUT 3000
#define CAPS_WORD_IDlE_TIMEOUT 3000 #define CAPS_WORD_IDlE_TIMEOUT 3000
// combos' keys are always checked from layer 0
#define COMBO_ONLY_FROM_LAYER 0
// RGB // RGB
#ifdef RGBLIGHT_ENABLE #ifdef RGBLIGHT_ENABLE
#define RGBLIGHT_SLEEP #define RGBLIGHT_SLEEP

View file

@ -16,9 +16,6 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
// Combo dictionary management
#include "g/keymap_combo.h"
// Awesome features created by getreuer // Awesome features created by getreuer
#include "features/sentence_case.h" #include "features/sentence_case.h"
#include "features/achordion.h" #include "features/achordion.h"
@ -35,6 +32,9 @@ enum layers {
MOD, // Contains keyboard related modifications. MOD, // Contains keyboard related modifications.
}; };
// Combo dictionary management (layer names must be defined before engine include)
#include "g/keymap_combo.h"
// Our custom keycodes // Our custom keycodes
enum custom_keycodes { enum custom_keycodes {
SC_TOGG = SAFE_RANGE, SC_TOGG = SAFE_RANGE,