stanrc85.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. };
  21. enum tap_dance {
  22. TD_WIN,
  23. TD_ESC,
  24. TD_RCTL
  25. };
  26. // define a type containing as many tapdance states as you need
  27. typedef enum {
  28. SINGLE_TAP,
  29. SINGLE_HOLD,
  30. DOUBLE_TAP
  31. } td_state_t;
  32. // function to determine the current tapdance state
  33. int cur_dance (qk_tap_dance_state_t *state);
  34. // `finished` and `reset` functions for each tapdance keycode
  35. void ctl_copy_finished (qk_tap_dance_state_t *state, void *user_data);
  36. void ctl_copy_reset (qk_tap_dance_state_t *state, void *user_data);