Skip to content

Commit

Permalink
Duplicate the TD on my zmk layout
Browse files Browse the repository at this point in the history
  • Loading branch information
evantravers committed Mar 16, 2024
1 parent f50f061 commit 6c80c33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion users/evantravers/evantravers.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ qk_tap_dance_action_t tap_dance_actions[] = {
[TD_TAB_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_ESC),
[TD_PREV_NEXT] = ACTION_TAP_DANCE_DOUBLE(KC_MFFD, KC_MRWD),
[TD_SCRNST] = ACTION_TAP_DANCE_DOUBLE(LGUI(LSFT(LCTL(KC_4))), LGUI(LSFT(KC_4))),
[TD_MUTE] = ACTION_TAP_DANCE_DOUBLE(LGUI(KC_GRV), LGUI(LSFT(KC_M)))
[TD_MUTE] = ACTION_TAP_DANCE_DOUBLE(LGUI(KC_GRV), LGUI(LSFT(KC_M))),
[TD_SPCRET] = ACTION_TAP_DANCE_DOUBLE(KC_SPC, KC_ENT)
};

#ifdef AUDIO_ENABLE
Expand Down
4 changes: 3 additions & 1 deletion users/evantravers/evantravers.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define SCRNST TD(TD_SCRNST)
#define PREV_NEXT TD(TD_PREV_NEXT)
#define TAB_ESC TD(TD_TAB_ESC)
#define SPCRET TD(TD_SPCRET)
#define PASS LGUI(KC_BSLS)
#define MUTE LSFT(LGUI(KC_M))

Expand All @@ -54,7 +55,8 @@ enum userspace_tapdances {
TD_PREV_NEXT,
TD_SCRNST,
TD_MUTE,
TD_TAB_ESC
TD_TAB_ESC,
TD_SPCRET
};

enum userspace_custom_keycodes {
Expand Down
2 changes: 1 addition & 1 deletion users/evantravers/wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

#define _______________SHORTCUTS_L1________________ KC_1, KC_2, KC_3, KC_4, KC_5 // Do I really use these numbers?
#define _______________SHORTCUTS_L2________________ WIN_MUTE, SCRNST, ZOOMIN, TABN, HFWD
#define _______________SHORTCUTS_L3________________ KC_SPC, KC_ENT, ZOOMOUT,TABP, HBCK
#define _______________SHORTCUTS_L3________________ SPCRET, _______, ZOOMOUT,TABP, HBCK

#define _______________SHORTCUTS_R1________________ KC_BSPC, KC_7, KC_8, KC_9, PASS
#define _______________SHORTCUTS_R2________________ KC_0, KC_4, KC_5, KC_6, KC_TAB
Expand Down

0 comments on commit 6c80c33

Please sign in to comment.