aboutsummaryrefslogtreecommitdiff
path: root/users/imchipwood/imchipwood.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/imchipwood/imchipwood.h')
-rw-r--r--users/imchipwood/imchipwood.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/users/imchipwood/imchipwood.h b/users/imchipwood/imchipwood.h
new file mode 100644
index 000000000..64726a862
--- /dev/null
+++ b/users/imchipwood/imchipwood.h
@@ -0,0 +1,51 @@
1/* Copyright 2021 imchipwood
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#include "quantum.h"
19
20// change the tapping term to a little bit quicker
21#ifdef TAPPING_TERM
22 #undef TAPPING_TERM
23#endif
24#define TAPPING_TERM 175
25
26#ifdef TAPPING_TOGGLE
27 #undef TAPPING_TOGGLE
28#endif
29#define TAPPING_TOGGLE 2
30
31
32enum td_keycodes {
33 TD_REND = 0, // right when tapped, end when double tapped
34 TD_LOME, // left when tapped, home when double tapped
35 TD_RSFT_CAPS,
36 ALT_F2, // F2 when tapped, LALT when held, LALT+F2 when double tapped
37 CTL_F5, // F5 when tapped, LCTL when held, LCTL+F5 when double tapped
38 ALT_F7, // F7 when tapped, LALT when held, LALT+F7 when double tapped
39 DEL_NLCK, // DEL when tapped, NUMLOCK when double tapped
40};
41
42
43typedef enum { SINGLE_TAP, SINGLE_HOLD, DOUBLE_TAP } td_state_t;
44int cur_dance(qk_tap_dance_state_t *state);
45
46void altf2_finished(qk_tap_dance_state_t *state, void *user_data);
47void altf2_reset(qk_tap_dance_state_t *state, void *user_data);
48void ctlf5_finished(qk_tap_dance_state_t *state, void *user_data);
49void ctlf5_reset(qk_tap_dance_state_t *state, void *user_data);
50void altf7_finished(qk_tap_dance_state_t *state, void *user_data);
51void altf7_reset(qk_tap_dance_state_t *state, void *user_data);