talljoe.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. #ifndef USERSPACE
  2. #define USERSPACE
  3. #include "quantum.h"
  4. enum userspace_custom_keycodes {
  5. KC_MAKE = SAFE_RANGE, // can always be here
  6. DFAULTS,
  7. TOGGLE_BACKLIGHT,
  8. EFFECT,
  9. EFFECT_END = EFFECT + 10
  10. };
  11. #ifndef RESET_LAYER
  12. #define RESET_LAYER 15
  13. #endif
  14. enum layers {
  15. _BASE = 0,
  16. _WORKMAN,
  17. _NORMAN,
  18. _DVORAK,
  19. _COLMAK,
  20. _GAME,
  21. _NAV,
  22. _NUM,
  23. _ADJUST,
  24. _RESET = RESET_LAYER,
  25. };
  26. #define _______ KC_TRNS
  27. #define XXXXXXX KC_NO
  28. #define MO_NAV MO(_NAV)
  29. #define MO_ADJ MO(_ADJUST)
  30. #define MO_RST MO(_RESET)
  31. #define TG_ADJ TG(_ADJUST)
  32. #ifdef ENABLE_GAME_LAYER
  33. #define TG_GAME TG(_GAME)
  34. #else
  35. #define TG_GAME KC_NO
  36. #endif
  37. #define LY_QWER DF(_BASE)
  38. #define LY_WORK DF(_WORKMAN)
  39. #define LY_NRMN DF(_NORMAN)
  40. #define LY_DVRK DF(_DVORAK)
  41. #define LY_CLMK DF(_COLMAK)
  42. #define TG_NKRO MAGIC_TOGGLE_NKRO
  43. #define KC_PTT KC_F24
  44. #define MS_MID KC_MS_BTN3
  45. #define FX(x) (EFFECT + x)
  46. #define US_CAPS CTL_T(KC_ESC)
  47. #define US_QUOT RCTL_T(KC_QUOT)
  48. #define US_MINS RCTL_T(KC_QUOT)
  49. #define US_ENT LT(_NUM, KC_ENT)
  50. #ifndef SPACE_COUNT
  51. #define SPACE_COUNT 1
  52. #endif
  53. #if (SPACE_COUNT == 1)
  54. #define KC_SPC1 LT(_NAV, KC_SPC)
  55. #define KC_SPC2 XXXXXXX
  56. #define KC_SPC3 XXXXXXX
  57. #define NV_SPC1 _______
  58. #define NV_SPC2 _______
  59. #define NV_SPC3 _______
  60. #define NM_SPC1 _______
  61. #define NM_SPC2 _______
  62. #define NM_SPC3 _______
  63. #elif (SPACE_COUNT == 3)
  64. #define KC_SPC1 KC_BSPC
  65. #define KC_SPC2 LT(_NUM,KC_ENT)
  66. #define KC_SPC3 LT(_NAV,KC_SPC)
  67. #define NV_SPC1 KC_SPC
  68. #define NV_SPC2 C_S_T(KC_ENT)
  69. #define NV_SPC3 KC_SPC
  70. #define NM_SPC2 XXXXXXX
  71. #define NM_SPC1 KC_SPC
  72. #define NM_SPC3 KC_0
  73. #else
  74. #error "Unsupported space count:" SPACE_COUNT
  75. #endif
  76. #ifndef ZEAL_RGB
  77. #define BR_INC KC_NO
  78. #define BR_DEC KC_NO
  79. #define EF_INC KC_NO
  80. #define EF_DEC KC_NO
  81. #define ES_INC KC_NO
  82. #define ES_DEC KC_NO
  83. #define H1_INC KC_NO
  84. #define H1_DEC KC_NO
  85. #define S1_INC KC_NO
  86. #define S1_DEC KC_NO
  87. #define H2_INC KC_NO
  88. #define H2_DEC KC_NO
  89. #define S2_INC KC_NO
  90. #define S2_DEC KC_NO
  91. #define FN_MO13 KC_NO
  92. #define FN_MO2 KC_NO
  93. #endif
  94. #endif