Skip to content

Commit

Permalink
Enable home row combo mods
Browse files Browse the repository at this point in the history
  • Loading branch information
timokroeger committed Oct 1, 2023
1 parent 3c1074c commit c5d201b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
4 changes: 3 additions & 1 deletion keyboards/handwired/tranquility/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"bootloader": "caterina",
"diode_direction": "COL2ROW",
"features": {
"extrakey": true
"bootmagic": true,
"extrakey": true,
"combo": true,
},
"matrix_pins": {
"cols": ["E6", "B4", "B5", "B6", "B2", "B3"],
Expand Down
26 changes: 23 additions & 3 deletions keyboards/handwired/tranquility/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,35 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS,
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_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LGUI, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
KC_LALT, KC_LCTL, KC_SPC, KC_LSFT, RSFT_T(KC_ENT), KC_BSPC, LT(1, KC_DEL), KC_NO
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
KC_NO, KC_TAB, KC_SPC, LSFT_T(KC_ESC), RSFT_T(KC_ENT), KC_BSPC, LT(1, KC_DEL), KC_NO
),

[1] = LAYOUT(
QK_BOOT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
_______, _______, _______, _______, _______, _______, KC_PGUP, KC_BSPC, KC_UP, KC_DEL, KC_PGDN, KC_F12,
_______, _______, _______, _______, _______, _______, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, _______,
_______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, _______,
_______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, CG_TOGG,
_______, _______, _______, _______, _______, _______, _______, _______
),
};

const uint16_t PROGMEM fd_combo[] = {KC_F, KC_D, COMBO_END};
const uint16_t PROGMEM fs_combo[] = {KC_F, KC_S, COMBO_END};
const uint16_t PROGMEM fa_combo[] = {KC_F, KC_A, COMBO_END};
const uint16_t PROGMEM fds_combo[] = {KC_F, KC_D, KC_S, COMBO_END};
const uint16_t PROGMEM jk_combo[] = {KC_J, KC_K, COMBO_END};
const uint16_t PROGMEM jl_combo[] = {KC_J, KC_L, COMBO_END};
const uint16_t PROGMEM jscln_combo[] = {KC_J, KC_SCLN, COMBO_END};
const uint16_t PROGMEM jkl_combo[] = {KC_J, KC_K, KC_L, COMBO_END};

combo_t key_combos[] = {
COMBO(fd_combo, KC_LCTL),
COMBO(fs_combo, KC_LALT),
COMBO(fa_combo, KC_LGUI),
COMBO(fds_combo, LCTL(KC_LALT)),
COMBO(jk_combo, KC_LCTL),
COMBO(jl_combo, KC_LALT),
COMBO(jscln_combo, KC_LGUI),
COMBO(jkl_combo, LCTL(KC_LALT)),
};

0 comments on commit c5d201b

Please sign in to comment.