stanrc85.h 1.1 KB

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