]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/stanrc85/stanrc85.h
Fix typo
[qmk_firmware.git] / users / stanrc85 / stanrc85.h
1 #pragma once
2
3 #include "quantum.h"
4 #include "version.h"
5
6 #define DEFAULT 0  //Custom ANSI
7 #define LAYER1 1   //Default ANSI (enable with Fn2+CAPS)
8 #define LAYER2 2   //Function keys, arrows, custom shortcuts, volume control
9 #define LAYER3 3   //RGB Underglow controls and RESET
10
11 //Aliases for longer keycodes
12 #define KC_CAD  LALT(LCTL(KC_DEL))
13 #define KC_LOCK LGUI(KC_L)
14 #define CA_QUOT LCA(KC_QUOT)
15 #define CA_SCLN LCA(KC_SCLN)
16 #define KC_CTLE LCTL_T(KC_ESC)
17 #define LT_SPCF LT(2, KC_SPC)
18 #define TD_TESC TD(TD_ESC)
19 #define TD_TWIN TD(TD_WIN)
20 #define TD_TCTL TD(TD_RCTL)
21
22 enum cust_keys {
23   KC_MAKE = SAFE_RANGE,
24   KC_RDP
25 };
26
27 enum tap_dance {
28   TD_WIN,
29   TD_ESC,
30   TD_RCTL
31 };
32
33 // define a type containing as many tapdance states as you need
34 typedef enum {
35   SINGLE_TAP,
36   SINGLE_HOLD,
37   DOUBLE_TAP
38 } td_state_t;
39
40 // function to determine the current tapdance state
41 int cur_dance (qk_tap_dance_state_t *state);
42
43 // `finished` and `reset` functions for each tapdance keycode
44 void ctl_copy_finished (qk_tap_dance_state_t *state, void *user_data);
45 void ctl_copy_reset (qk_tap_dance_state_t *state, void *user_data);