drashna.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. Copyright 2017 Christopher Courtney <drashna@live.com> @drashna
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #ifndef USERSPACE
  15. #define USERSPACE
  16. #include "quantum.h"
  17. // Define layer names
  18. #define _QWERTY 0
  19. #define _NUMLOCK 0
  20. #define _COLEMAK 1
  21. #define _DVORAK 2
  22. #define _WORKMAN 3
  23. #define _NAV 5
  24. #define _COVECUBE 6
  25. #define _SYMB 8
  26. #define _OVERWATCH 9
  27. #define _DIABLO 10
  28. #define _MOUS 11
  29. #define _MACROS 12
  30. #define _MEDIA 13
  31. #define _LOWER 14
  32. #define _RAISE 15
  33. #define _ADJUST 16
  34. //define modifiers
  35. #define MODS_SHIFT_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
  36. #define MODS_CTRL_MASK (MOD_BIT(KC_LCTL)|MOD_BIT(KC_RCTRL))
  37. #define MODS_ALT_MASK (MOD_BIT(KC_LALT)|MOD_BIT(KC_RALT))
  38. #define MODS_GUI_MASK (MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI))
  39. #ifdef RGBLIGHT_ENABLE
  40. #define rgblight_set_blue rgblight_sethsv (0xFF, 0xFF, 0xFF);
  41. #define rgblight_set_red rgblight_sethsv (0x00, 0xFF, 0xFF);
  42. #define rgblight_set_green rgblight_sethsv (0x78, 0xFF, 0xFF);
  43. #define rgblight_set_orange rgblight_sethsv (0x1E, 0xFF, 0xFF);
  44. #define rgblight_set_teal rgblight_sethsv (0xC3, 0xFF, 0xFF);
  45. #define rgblight_set_magenta rgblight_sethsv (0x12C, 0xFF, 0xFF);
  46. #define rgblight_set_yellow rgblight_sethsv (0x3C, 0xFF, 0xFF);
  47. #define rgblight_set_purple rgblight_sethsv (0x10E, 0xFF, 0xFF);
  48. #endif
  49. extern bool is_overwatch;
  50. extern bool rgb_layer_change;
  51. enum userrpace_custom_keycodes {
  52. PLACEHOLDER = SAFE_RANGE, // can always be here
  53. EPRM,
  54. VRSN,
  55. KC_QWERTY,
  56. KC_COLEMAK,
  57. KC_DVORAK,
  58. KC_WORKMAN,
  59. LOWER,
  60. RAISE,
  61. ADJUST,
  62. KC_DIABLO_CLEAR,
  63. KC_OVERWATCH,
  64. KC_SALT,
  65. KC_MORESALT,
  66. KC_SALTHARD,
  67. KC_GOODGAME,
  68. KC_SYMM,
  69. KC_JUSTGAME,
  70. KC_GLHF,
  71. KC_TORB,
  72. KC_AIM,
  73. KC_C9,
  74. KC_GGEZ,
  75. KC_MAKE,
  76. KC_RESET,
  77. KC_RGB_T,
  78. NEW_SAFE_RANGE //use "NEWPLACEHOLDER for keymap specific codes
  79. };
  80. #ifdef TAP_DANCE_ENABLE
  81. enum {
  82. TD_D3_1 = 0,
  83. TD_D3_2,
  84. TD_D3_3,
  85. TD_D3_4
  86. };
  87. #endif
  88. #endif