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.

151 lines
12 KiB

[Keymap] ninjonas keymap for crkbd & ninjonas userspace updates (#6797) * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [refactor(crkbd)] reducing file size by selecting RGB animations * [refactor(crkbd)] added shiftit key * [refactor(crkbd)] added shiftit key * [chore(crkbd)] adding SLEEP_LED_ENABLE on rules.mk * [refactor(crkbd)] added keylog & removed static rainbow RGB * [feat(crkbd)] introduced em-dash '—' keymap * [feat(crkbd)] added screenshot functionality * [refactor(lily58,pinky3)] moving media keys * [refactor(lily58)] Added emdash key * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore(crkbd,lily48)] Updating README.md * [feat] added K_LAPP & K_RAPP to mimic command + tab * [feat] added K_LAPP & K_RAPP to mimic command + tab * [fix(#6797)] resolving changes requested by @drashna * [fix(#6797)] first cut on using QMK OLED Driver * [fix(#6797)] cleaning up rules.mk * [fix(#6797)] making scrolling logo work * [fix(#6797)] Using OLED Driver for Lily58 * [fix(#6797)] Moved OLED driver implementation to ninjonas userspace * [fix(#6797)] Bringing back crkbd & lily58 logos * [fix(#6797)] Turning off OLED based off @drashna's workaround in #5982 * [fix(#6797)] whoops! forgot to checkin crkbd/config.h * [fix(#6797)] fixing issue with OLED randomly turning on * [fix(#6797)] using default glcdfont.c for lily58 & crkbd * [fix(#6797)] Using LINK_TIME_OPTIMIZATION_ENABLE rather than EXTRAFLAGS as per code review * [fix(#6797)] updating M_MALL macro as per code review by @fauxpark
4 years ago
[Keymap] ninjonas keymap for crkbd & ninjonas userspace updates (#6797) * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [refactor(crkbd)] reducing file size by selecting RGB animations * [refactor(crkbd)] added shiftit key * [refactor(crkbd)] added shiftit key * [chore(crkbd)] adding SLEEP_LED_ENABLE on rules.mk * [refactor(crkbd)] added keylog & removed static rainbow RGB * [feat(crkbd)] introduced em-dash '—' keymap * [feat(crkbd)] added screenshot functionality * [refactor(lily58,pinky3)] moving media keys * [refactor(lily58)] Added emdash key * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore(crkbd,lily48)] Updating README.md * [feat] added K_LAPP & K_RAPP to mimic command + tab * [feat] added K_LAPP & K_RAPP to mimic command + tab * [fix(#6797)] resolving changes requested by @drashna * [fix(#6797)] first cut on using QMK OLED Driver * [fix(#6797)] cleaning up rules.mk * [fix(#6797)] making scrolling logo work * [fix(#6797)] Using OLED Driver for Lily58 * [fix(#6797)] Moved OLED driver implementation to ninjonas userspace * [fix(#6797)] Bringing back crkbd & lily58 logos * [fix(#6797)] Turning off OLED based off @drashna's workaround in #5982 * [fix(#6797)] whoops! forgot to checkin crkbd/config.h * [fix(#6797)] fixing issue with OLED randomly turning on * [fix(#6797)] using default glcdfont.c for lily58 & crkbd * [fix(#6797)] Using LINK_TIME_OPTIMIZATION_ENABLE rather than EXTRAFLAGS as per code review * [fix(#6797)] updating M_MALL macro as per code review by @fauxpark
4 years ago
[Keymap] ninjonas keymap for crkbd & ninjonas userspace updates (#6797) * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [refactor(crkbd)] reducing file size by selecting RGB animations * [refactor(crkbd)] added shiftit key * [refactor(crkbd)] added shiftit key * [chore(crkbd)] adding SLEEP_LED_ENABLE on rules.mk * [refactor(crkbd)] added keylog & removed static rainbow RGB * [feat(crkbd)] introduced em-dash '—' keymap * [feat(crkbd)] added screenshot functionality * [refactor(lily58,pinky3)] moving media keys * [refactor(lily58)] Added emdash key * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore(crkbd,lily48)] Updating README.md * [feat] added K_LAPP & K_RAPP to mimic command + tab * [feat] added K_LAPP & K_RAPP to mimic command + tab * [fix(#6797)] resolving changes requested by @drashna * [fix(#6797)] first cut on using QMK OLED Driver * [fix(#6797)] cleaning up rules.mk * [fix(#6797)] making scrolling logo work * [fix(#6797)] Using OLED Driver for Lily58 * [fix(#6797)] Moved OLED driver implementation to ninjonas userspace * [fix(#6797)] Bringing back crkbd & lily58 logos * [fix(#6797)] Turning off OLED based off @drashna's workaround in #5982 * [fix(#6797)] whoops! forgot to checkin crkbd/config.h * [fix(#6797)] fixing issue with OLED randomly turning on * [fix(#6797)] using default glcdfont.c for lily58 & crkbd * [fix(#6797)] Using LINK_TIME_OPTIMIZATION_ENABLE rather than EXTRAFLAGS as per code review * [fix(#6797)] updating M_MALL macro as per code review by @fauxpark
4 years ago
[Keymap] ninjonas keymap for crkbd & ninjonas userspace updates (#6797) * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [refactor(crkbd)] reducing file size by selecting RGB animations * [refactor(crkbd)] added shiftit key * [refactor(crkbd)] added shiftit key * [chore(crkbd)] adding SLEEP_LED_ENABLE on rules.mk * [refactor(crkbd)] added keylog & removed static rainbow RGB * [feat(crkbd)] introduced em-dash '—' keymap * [feat(crkbd)] added screenshot functionality * [refactor(lily58,pinky3)] moving media keys * [refactor(lily58)] Added emdash key * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore(crkbd,lily48)] Updating README.md * [feat] added K_LAPP & K_RAPP to mimic command + tab * [feat] added K_LAPP & K_RAPP to mimic command + tab * [fix(#6797)] resolving changes requested by @drashna * [fix(#6797)] first cut on using QMK OLED Driver * [fix(#6797)] cleaning up rules.mk * [fix(#6797)] making scrolling logo work * [fix(#6797)] Using OLED Driver for Lily58 * [fix(#6797)] Moved OLED driver implementation to ninjonas userspace * [fix(#6797)] Bringing back crkbd & lily58 logos * [fix(#6797)] Turning off OLED based off @drashna's workaround in #5982 * [fix(#6797)] whoops! forgot to checkin crkbd/config.h * [fix(#6797)] fixing issue with OLED randomly turning on * [fix(#6797)] using default glcdfont.c for lily58 & crkbd * [fix(#6797)] Using LINK_TIME_OPTIMIZATION_ENABLE rather than EXTRAFLAGS as per code review * [fix(#6797)] updating M_MALL macro as per code review by @fauxpark
4 years ago
[Keymap] ninjonas keymap for crkbd & ninjonas userspace updates (#6797) * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [refactor(crkbd)] reducing file size by selecting RGB animations * [refactor(crkbd)] added shiftit key * [refactor(crkbd)] added shiftit key * [chore(crkbd)] adding SLEEP_LED_ENABLE on rules.mk * [refactor(crkbd)] added keylog & removed static rainbow RGB * [feat(crkbd)] introduced em-dash '—' keymap * [feat(crkbd)] added screenshot functionality * [refactor(lily58,pinky3)] moving media keys * [refactor(lily58)] Added emdash key * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore(crkbd,lily48)] Updating README.md * [feat] added K_LAPP & K_RAPP to mimic command + tab * [feat] added K_LAPP & K_RAPP to mimic command + tab * [fix(#6797)] resolving changes requested by @drashna * [fix(#6797)] first cut on using QMK OLED Driver * [fix(#6797)] cleaning up rules.mk * [fix(#6797)] making scrolling logo work * [fix(#6797)] Using OLED Driver for Lily58 * [fix(#6797)] Moved OLED driver implementation to ninjonas userspace * [fix(#6797)] Bringing back crkbd & lily58 logos * [fix(#6797)] Turning off OLED based off @drashna's workaround in #5982 * [fix(#6797)] whoops! forgot to checkin crkbd/config.h * [fix(#6797)] fixing issue with OLED randomly turning on * [fix(#6797)] using default glcdfont.c for lily58 & crkbd * [fix(#6797)] Using LINK_TIME_OPTIMIZATION_ENABLE rather than EXTRAFLAGS as per code review * [fix(#6797)] updating M_MALL macro as per code review by @fauxpark
4 years ago
  1. /* Copyright 2019 @ninjonas
  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. #include "ninjonas.h"
  18. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  19. /* QWERTY
  20. * ,-----------------------------------------. ,-----------------------------------------.
  21. * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | - |
  22. * |------+------+------+------+------+------| |------+------+------+------+------+------|
  23. * | Tab | Q | W | E | R | T | | Y | U | I | O | P | \ |
  24. * |------+------+------+------+------+------| |------+------+------+------+------+------|
  25. * | ESC | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' |
  26. * |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------|
  27. * |LShift| Z | X | C | V | B |-------| |-------| N | M | , | . | / | = |
  28. * `-----------------------------------------/ / \ \-----------------------------------------'
  29. * | Alt | | Ctrl | /Space / \Enter \ |BackSP| Del |LOWER |
  30. * | | | |/ / \ \ | | | |
  31. * `----------------------------' '------''--------------------'
  32. */
  33. [_QWERTY] = LAYOUT_wrapper(
  34. _____________________NUM_LEFT_______________________, _____________________NUM_RIGHT______________________, \
  35. _____________________QWERTY_L1______________________, _____________________QWERTY_R1______________________, \
  36. _____________________QWERTY_L2______________________, _____________________QWERTY_R2______________________, \
  37. _____________________QWERTY_L3______________________, T_LBRC, T_RBRC, _____________________QWERTY_R3______________________, \
  38. ________MOD_LEFT_________, LT_RAI, LT_LOW, ________MOD_RIGHT________ \
  39. ),
  40. /* DVORAK
  41. * ,-----------------------------------------. ,-----------------------------------------.
  42. * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | - |
  43. * |------+------+------+------+------+------| |------+------+------+------+------+------|
  44. * | Tab | ' | , | . | P | Y | | F | G | C | R | L | \ |
  45. * |------+------+------+------+------+------| |------+------+------+------+------+------|
  46. * | ESC | A | O | E | U | I |-------. ,-------| D | H | T | N | S | / |
  47. * |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------|
  48. * |LShift| ; | Q | J | K | X |-------| |-------| B | M | W | V | Z | = |
  49. * `-----------------------------------------/ / \ \-----------------------------------------'
  50. * | Alt | | Ctrl | /Space / \Enter \ |BackSP| Del |LOWER |
  51. * | | | |/ / \ \ | | | |
  52. * `----------------------------' '------''--------------------'
  53. */
  54. [_DVORAK] = LAYOUT_wrapper(
  55. _____________________NUM_LEFT_______________________, _____________________NUM_RIGHT______________________, \
  56. _____________________DVORAK_L1______________________, _____________________DVORAK_R1______________________, \
  57. _____________________DVORAK_L2______________________, _____________________DVORAK_R2______________________, \
  58. _____________________DVORAK_L3______________________, T_LBRC, T_RBRC, _____________________DVORAK_R3______________________, \
  59. ________MOD_LEFT_________, LT_RAI, LT_LOW, ________MOD_RIGHT________ \
  60. ),
  61. /* COLEMAK
  62. * ,-----------------------------------------. ,-----------------------------------------.
  63. * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | - |
  64. * |------+------+------+------+------+------| |------+------+------+------+------+------|
  65. * | Tab | Q | W | F | P | G | | J | L | U | Y | ; | \ |
  66. * |------+------+------+------+------+------| |------+------+------+------+------+------|
  67. * | ESC | A | R | S | T | D |-------. ,-------| H | N | E | I | O | ' |
  68. * |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------|
  69. * |LShift| Z | X | C | V | B |-------| |-------| K | M | , | . | / | = |
  70. * `-----------------------------------------/ / \ \-----------------------------------------'
  71. * | Alt | | Ctrl | /Space / \Enter \ |BackSP| Del |LOWER |
  72. * | | | |/ / \ \ | | | |
  73. * `----------------------------' '------''--------------------'
  74. */
  75. [_COLEMAK] = LAYOUT_wrapper(
  76. _____________________NUM_LEFT_______________________, _____________________NUM_RIGHT______________________, \
  77. _____________________COLEMAK_L1_____________________, _____________________COLEMAK_R1_____________________, \
  78. _____________________COLEMAK_L2_____________________, _____________________COLEMAK_R2_____________________, \
  79. _____________________COLEMAK_L3_____________________, T_LBRC, T_RBRC, _____________________COLEMAK_R3_____________________, \
  80. ________MOD_LEFT_________, LT_RAI, LT_LOW, ________MOD_RIGHT________ \
  81. ),
  82. /* LOWER
  83. * ,------------------------------------------. ,------------------------------------------.
  84. * | F11 | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F12 |
  85. * |------+------+------+-------+------+------| |------+------+------+------+-------+------|
  86. * | | |KC_BRIU| Play | Mute | | | PgUp | Home | Up | End | |K_MDSH|
  87. * |------+------+------+-------+------+------| |------+------+------+------+-------+------|
  88. * | | |KC_BRID| Next |VolUp | |-------. ,-------| PgDn | Left | Down |Right |K_LOCK | |
  89. * |------+------+------+-------+------+------| | | |------+------+------+------+-------+------|
  90. * | |M_SHFT| | Prev |VolDn | |-------| |-------| | M | | | |M_PYNV|
  91. * `------------------------------------------/ / \ \------------------------------------------'
  92. * | | | | / / \ \ | |M_CODE| |
  93. * | | | |/ / \ \ | | | |
  94. * `----------------------------' '------''--------------------'
  95. */
  96. [_LOWER] = LAYOUT_wrapper( \
  97. _____________________FUNC_LEFT______________________, _____________________FUNC_RIGHT_____________________, \
  98. _____________________LOWER_L1_______________________, _____________________LOWER_R1_______________________, \
  99. _____________________LOWER_L2_______________________, _____________________LOWER_R2_______________________, \
  100. _____________________LOWER_L3_______________________, _______, _______, _____________________LOWER_R3_______________________, \
  101. __________________________________, _______, _______, M_CODE, _______ \
  102. ),
  103. /* RAISE
  104. * ,-----------------------------------------. ,-----------------------------------------.
  105. * | | | | |K_CSCN| | | | | | | | |
  106. * |------+------+------+------+------+------| |------+------+------+------+------+------|
  107. * | | | MS_1 | MS_U | MS_2 | WH_U | | | | | | | |
  108. * |------+------+------+------+------+------| |------+------+------+------+------+------|
  109. * | | | MS_L | MS_D | MS_R | WH_D |-------. ,-------| | | | | | |
  110. * |------+------+------+------+------+------| | | |------+------+------+------+------+------|
  111. * | | | | | | |-------| |-------| | | | | | |
  112. * `-----------------------------------------/ / \ \-----------------------------------------'
  113. * | | | | / / \ \ | | | |
  114. * | | | |/ / \ \ | | | |
  115. * `----------------------------' '------''--------------------'
  116. */
  117. [_RAISE] = LAYOUT_wrapper( \
  118. XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
  119. XXXXXXX, XXXXXXX, _____________MOUSE_1______________, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
  120. XXXXXXX, XXXXXXX, _____________MOUSE_2______________, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
  121. XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,\
  122. __________________________________, __________________________________ \
  123. ),
  124. /* ADJUST
  125. * ,------------------------------------------. ,-----------------------------------------.
  126. * | | | | | | | | | | | | | |
  127. * |-------+------+------+------+------+------| |------+------+------+------+------+------|
  128. * |M_MAKE |EEPRST| | | | | | | | |COLMAK|DVORAK|QWERTY|
  129. * |-------+------+------+------+------+------| |------+------+------+------+------+------|
  130. * |M_VRSN |M_MALL| | | | |-------. ,-------| | | | | | |
  131. * |-------+------+------+------+------+------| | | |------+------+------+------+------+------|
  132. * |M_FLSH | | | | | |-------| |-------| | | | | | |
  133. * `------------------------------------------/ / \ \-----------------------------------------'
  134. * | | | | / / \ \ | | | |
  135. * | | | |/ / \ \ | | | |
  136. * `----------------------------' '------''--------------------'
  137. */
  138. [_ADJUST] = LAYOUT_wrapper( \
  139. XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
  140. _____________________ADJUST_L1______________________, _____________________ADJUST_R1______________________, \
  141. _____________________ADJUST_L2______________________, _____________________ADJUST_R2______________________, \
  142. _____________________ADJUST_L3______________________, XXXXXXX, XXXXXXX, _____________________ADJUST_R3______________________,\
  143. __________________________________, __________________________________ \
  144. ),
  145. };