Skip to content

Commit

Permalink
Impelment combo for caps word
Browse files Browse the repository at this point in the history
  • Loading branch information
jdominpa committed May 27, 2024
1 parent 9e1a59a commit adf159a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion keyboards/kbdfans/kbd67/mkiirgb/keymaps/jdominpa/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
#define PERMISSIVE_HOLD
#define QUICK_TAP_TERM 0

/* Combos */
#define COMBO_TERM 35

/* Caps word */
#define BOTH_SHIFTS_TURNS_ON_CAPS_WORD
#define DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD
11 changes: 10 additions & 1 deletion keyboards/kbdfans/kbd67/mkiirgb/keymaps/jdominpa/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@
enum layers {
DEF,
NAV,
GAME,
GAME,
};

enum combos {
CAPS_WORD,
};

const uint16_t PROGMEM caps_word_combo[] = {KC_U, KC_I, KC_O, COMBO_END};
combo_t key_combos[] = {
[CAPS_WORD] = COMBO(caps_word_combo, QK_CAPS_WORD_TOGGLE),
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
Expand Down
3 changes: 3 additions & 0 deletions keyboards/kbdfans/kbd67/mkiirgb/keymaps/jdominpa/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ COMMAND_ENABLE = no
# Caps word
CAPS_WORD_ENABLE = yes

# Combos
COMBO_ENABLE = yes

# Disable RGB
RGBLIGHT_ENABLE = no
RGB_MATRIX_ENABLE = no

0 comments on commit adf159a

Please sign in to comment.