stanrc85.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #pragma once
  2. #include "quantum.h"
  3. #include "version.h"
  4. enum my_layers {
  5. _NUMPAD = 0, //Macropad numpad
  6. _NAVKEY, //Macropad nav keys
  7. _MEDIA, //Macropad media controls
  8. _RGB, //Macropad RGB controls
  9. _FN1PAD, //Macropad reset and make commands
  10. _QWERTY = 0, //Qwerty with custom shortcuts and functions
  11. _DEFAULT, //Default ANSI for gaming, enable with FN2+RCtl
  12. _FN1_60, //Function keys, arrows, custom shortcuts, volume control
  13. _FN2_60 //RGB Underglow controls and RESET
  14. };
  15. //Aliases for longer keycodes
  16. #define KC_CAD LALT(LCTL(KC_DEL))
  17. #define KC_LOCK LGUI(KC_L)
  18. #define CA_QUOT LCA(KC_QUOT)
  19. #define CA_SCLN LCA(KC_SCLN)
  20. #define KC_CTLE LCTL_T(KC_ESC)
  21. #define LT_SPCF LT(_FN1_60, KC_SPC)
  22. #define TD_TESC TD(TD_ESC)
  23. #define TD_TWIN TD(TD_WIN)
  24. #define TD_TCTL TD(TD_RCTL)
  25. #define CA_COPY LCTL(KC_C)
  26. #define CA_PSTE LCTL(KC_V)
  27. enum cust_keys {
  28. KC_MAKE = SAFE_RANGE,
  29. KC_RDP
  30. };
  31. enum tap_dance {
  32. TD_WIN,
  33. TD_ESC,
  34. TD_RCTL
  35. };
  36. // define a type containing as many tapdance states as you need
  37. typedef enum {
  38. SINGLE_TAP,
  39. SINGLE_HOLD,
  40. DOUBLE_TAP
  41. } td_state_t;
  42. // function to determine the current tapdance state
  43. int cur_dance (qk_tap_dance_state_t *state);
  44. // `finished` and `reset` functions for each tapdance keycode
  45. void ctl_copy_finished (qk_tap_dance_state_t *state, void *user_data);
  46. void ctl_copy_reset (qk_tap_dance_state_t *state, void *user_data);