danielo515.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #pragma once
  2. #include "quantum.h"
  3. bool handle_macro(uint16_t kc);
  4. bool is_macro (uint16_t kc);
  5. bool process_incremental_macro (uint16_t);
  6. void refresh_incremental_macros (uint16_t);
  7. //**************** KEYCODES *********************//
  8. enum custom_keycodes
  9. {
  10. PLACEHOLDER = SAFE_RANGE, // can always be here
  11. EPRM,
  12. RGB_SLD,
  13. ALT_TAB,
  14. // Macros
  15. ARROW,
  16. F_ARROW,
  17. QWERTY,
  18. GREP,
  19. // Accented characters
  20. AC_A,
  21. AC_E,
  22. AC_I,
  23. AC_O,
  24. // Custom multi-os key-codes
  25. CUT,
  26. COPY,
  27. PASTE,
  28. SAVE,
  29. UNDO,
  30. CHG_LAYOUT,
  31. FIND,
  32. // OTHER OLD STUFF
  33. LOWER,
  34. RAISE,
  35. ADJUST,
  36. MAC_TGL,
  37. MACRO_START, // START OF VSC DECLARATIONS
  38. T_TERM,
  39. FIX_ALL,
  40. BLK_CMNT,
  41. LN_CMNT,
  42. CMD_S_P,
  43. TRI_TICKS,
  44. MACRO_END, // END OF VSC DECLARATIONS
  45. INC_MACROS_START,
  46. INC_MACROS_END,
  47. };
  48. enum layers {
  49. _QWERTY,
  50. _LOWER,
  51. _RAISE,
  52. _F,
  53. _D,
  54. _A,
  55. _S,
  56. _J,
  57. _K,
  58. _MACROS,
  59. _ADJUST,
  60. _SAFE_LAYER
  61. };
  62. // Function letters
  63. #define FN_F LT(_F,KC_F)
  64. #define FN_D LT(_D,KC_D)
  65. #define FN_S LT(_S,KC_S)
  66. #define FN_A LT(_A,KC_A)
  67. #define FN_K LT(_K,KC_K)
  68. #define FN_J LT(_J,KC_J)
  69. #define KC_FN_D FN_D
  70. #define KC_FN_S FN_S
  71. #define KC_FN_F FN_F
  72. #define KC_MACROS OSL(_MACROS)
  73. #define KC_E_COLN LSFT(KC_DOT)
  74. #define KC_E_EQL ES_EQL
  75. #define KC_GUI OSM(MOD_RGUI)
  76. #define KC_R_NUB S(KC_NUBS)
  77. #define KC_E_LT KC_NUBS
  78. #define KC_E_GT S(KC_NUBS)
  79. #define KC_E_TILD ES_TILD
  80. #define KC_E_MINS ES_MINS
  81. #define KC_S_SPC SFT_T(KC_SPC) // Tap for Space, hold for Shift
  82. #define KC_E_OVRR ES_OVRR
  83. #define KC_E_APOS ES_APOS
  84. #define KC_E_IEXL ES_IEXL
  85. // Short hand for complex key combinations
  86. # define WIN_LEFT_HALF LALT(LGUI(KC_LEFT))
  87. # define WIN_RIGHT_HALF LALT(LGUI(KC_RIGHT))
  88. # define WIN_TO_LEFT LALT(LSFT( LGUI(KC_LEFT) ))
  89. # define WIN_TO_RIGHT LALT(LSFT( LGUI(KC_RIGHT) ))
  90. // Ready to use Tap dance definitions, just put them on your layout
  91. #ifdef TAP_DANCE_ENABLE
  92. #include "tap_dance.h"
  93. #endif