aboutsummaryrefslogtreecommitdiff
path: root/users/hvp
diff options
context:
space:
mode:
Diffstat (limited to 'users/hvp')
-rw-r--r--users/hvp/hvp.h6
-rw-r--r--users/hvp/tap_dances.c66
-rw-r--r--users/hvp/tap_dances.h4
3 files changed, 56 insertions, 20 deletions
diff --git a/users/hvp/hvp.h b/users/hvp/hvp.h
index 2b2210f87..99da258aa 100644
--- a/users/hvp/hvp.h
+++ b/users/hvp/hvp.h
@@ -4,3 +4,9 @@
4# include "tap_dances.h" 4# include "tap_dances.h"
5#endif 5#endif
6#include "quantum.h" 6#include "quantum.h"
7
8#define TAPPING_TERM 150
9
10// Keys
11
12#define D_NAVI MT(MOD_LCTL | MOD_LSFT, KC_D) \ No newline at end of file
diff --git a/users/hvp/tap_dances.c b/users/hvp/tap_dances.c
index bb102b30a..1269d5f27 100644
--- a/users/hvp/tap_dances.c
+++ b/users/hvp/tap_dances.c
@@ -6,10 +6,7 @@ void dance_1_finished(qk_tap_dance_state_t *state, void *user_data) {
6 if (state->count == 2) { 6 if (state->count == 2) {
7 tap_code(KC_SCLN); 7 tap_code(KC_SCLN);
8 } else { 8 } else {
9 register_code(KC_RALT); 9 tap_code16(ALGR(KC_A));
10 register_code(KC_O);
11 unregister_code(KC_RALT);
12 unregister_code(KC_O);
13 } 10 }
14} 11}
15 12
@@ -17,8 +14,7 @@ void dance_1_reset(qk_tap_dance_state_t *state, void *user_data) {
17 if (state->count == 2) { 14 if (state->count == 2) {
18 unregister_code(KC_SCLN); 15 unregister_code(KC_SCLN);
19 } else { 16 } else {
20 unregister_code(KC_RALT); 17 unregister_code16(ALGR(KC_A));
21 unregister_code(KC_O);
22 } 18 }
23} 19}
24 20
@@ -27,10 +23,7 @@ void dance_2_finished(qk_tap_dance_state_t *state, void *user_data) {
27 if (state->count == 2) { 23 if (state->count == 2) {
28 tap_code(KC_QUOT); 24 tap_code(KC_QUOT);
29 } else { 25 } else {
30 register_code(KC_RALT); 26 tap_code16(ALGR(KC_W));
31 register_code(KC_A);
32 unregister_code(KC_RALT);
33 unregister_code(KC_A);
34 } 27 }
35} 28}
36 29
@@ -38,8 +31,7 @@ void dance_2_reset(qk_tap_dance_state_t *state, void *user_data) {
38 if (state->count == 2) { 31 if (state->count == 2) {
39 unregister_code(KC_QUOT); 32 unregister_code(KC_QUOT);
40 } else { 33 } else {
41 unregister_code(KC_RALT); 34 unregister_code16(ALGR(KC_W));
42 unregister_code(KC_A);
43 } 35 }
44} 36}
45 37
@@ -49,10 +41,7 @@ void dance_3_finished(qk_tap_dance_state_t *state, void *user_data) {
49 if (state->count == 2) { 41 if (state->count == 2) {
50 tap_code(KC_SLSH); 42 tap_code(KC_SLSH);
51 } else { 43 } else {
52 register_code(KC_RALT); 44 tap_code16(ALGR(KC_O));
53 register_code(KC_W);
54 unregister_code(KC_RALT);
55 unregister_code(KC_W);
56 } 45 }
57} 46}
58 47
@@ -60,8 +49,43 @@ void dance_3_reset(qk_tap_dance_state_t *state, void *user_data) {
60 if (state->count == 2) { 49 if (state->count == 2) {
61 unregister_code(KC_SLSH); 50 unregister_code(KC_SLSH);
62 } else { 51 } else {
63 unregister_code(KC_RALT); 52 unregister_code16(ALGR(KC_O));
64 unregister_code(KC_W); 53 }
54}
55
56// Tap dance 4
57void dance_4_finished(qk_tap_dance_state_t *state, void *user_data) {
58 // if (state->count == 2)
59 if (state->count == 2) {
60 tap_code(KC_DOT);
61 } else {
62 tap_code16(ALGR(KC_W));
63 }
64}
65
66void dance_4_reset(qk_tap_dance_state_t *state, void *user_data) {
67 if (state->count == 2) {
68 unregister_code(KC_DOT);
69 } else {
70 unregister_code16(ALGR(KC_W));
71 }
72}
73
74// Tap dance 5
75void dance_5_finished(qk_tap_dance_state_t *state, void *user_data) {
76 // if (state->count == 2)
77 if (state->count == 2) {
78 tap_code(KC_DOT);
79 } else {
80 tap_code16(ALGR(KC_O));
81 }
82}
83
84void dance_5_reset(qk_tap_dance_state_t *state, void *user_data) {
85 if (state->count == 2) {
86 unregister_code(KC_DOT);
87 } else {
88 unregister_code16(ALGR(KC_O));
65 } 89 }
66} 90}
67 91
@@ -72,4 +96,8 @@ qk_tap_dance_action_t tap_dance_actions[] = {
72 96
73 [TD2] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_2_finished, dance_2_reset), 97 [TD2] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_2_finished, dance_2_reset),
74 98
75 [TD3] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_3_finished, dance_3_reset)}; \ No newline at end of file 99 [TD3] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_3_finished, dance_3_reset),
100
101 [TD4] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_4_finished, dance_4_reset),
102
103 [TD5] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_5_finished, dance_5_reset)}; \ No newline at end of file
diff --git a/users/hvp/tap_dances.h b/users/hvp/tap_dances.h
index 705985faa..cad9bd90e 100644
--- a/users/hvp/tap_dances.h
+++ b/users/hvp/tap_dances.h
@@ -6,5 +6,7 @@ enum tapdance_id
6{ 6{
7 TD1 = 0, 7 TD1 = 0,
8 TD2, 8 TD2,
9 TD3 9 TD3,
10 TD4,
11 TD5
10}; 12};