You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.4 KiB

  1. /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include QMK_KEYBOARD_H
  17. enum local_layers {
  18. _QWERTY,
  19. _RGB,
  20. _FUNC,
  21. };
  22. // Defines for task manager and such
  23. #define CALTDEL LCTL(LALT(KC_DEL))
  24. #define TSKMGR LCTL(LSFT(KC_ESC))
  25. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  26. /* Qwerty
  27. * ,-------------.
  28. * | 1 | 2 |
  29. * |------+------|
  30. * | 3 | 4 |
  31. * |------+------|
  32. * | 5 | 6 |
  33. * |------+------|
  34. * | FUNC | RGB |
  35. * `-------------'
  36. */
  37. [_QWERTY] = LAYOUT( \
  38. KC_1, KC_2, \
  39. KC_3, KC_4, \
  40. KC_5, KC_6, \
  41. MO(_FUNC), TG(_RGB) \
  42. ),
  43. /* RGB
  44. * ,-------------.
  45. * | Mode-| Mode+|
  46. * |------+------|
  47. * | HUE- | HUE+ |
  48. * |------+------|
  49. * | SAT- | SAT+ |
  50. * |------+------|
  51. * |RGBTOG| |
  52. * `-------------'
  53. */
  54. [_RGB] = LAYOUT( \
  55. RGB_RMOD, RGB_MOD, \
  56. RGB_HUD, RGB_HUI, \
  57. RGB_SAD, RGB_SAI, \
  58. RGB_TOG, KC_TRNS \
  59. ),
  60. /* Function
  61. * ,-------------.
  62. * | Q |CALDEL|
  63. * |------+------|
  64. * | A |TSKMGR|
  65. * |------+------|
  66. * | Z | X |
  67. * |------+------|
  68. * | | C |
  69. * `-------------'
  70. */
  71. [_FUNC] = LAYOUT( \
  72. KC_Q, CALTDEL, \
  73. KC_A, TSKMGR, \
  74. KC_Z, KC_X, \
  75. _______, RESET \
  76. )
  77. };
  78. #ifdef RGB_MATRIX_ENABLE
  79. led_config_t g_led_config = {
  80. {
  81. { 7, 0 },
  82. { 6, 1 },
  83. { 5, 2 },
  84. { 4, 3 },
  85. },{
  86. { 121, 2 }, { 121, 23 },
  87. { 121, 41 }, { 121, 60 },
  88. { 103, 2 }, { 103, 23 },
  89. { 103, 41 }, { 103, 60 },
  90. },{
  91. 1, 1, 1, 1,
  92. 1, 1, 1, 1,
  93. }
  94. };
  95. #endif