defines.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. #pragma once
  2. #include "csc027.h"
  3. #define MC_LCAD LCA(KC_DEL) // Control-Alt-Delete
  4. #define MC_RSFE RSFT_T(KC_ENT) // Right Shift on hold, Enter on tap
  5. #define MC_LSEC LSFT_T(KC_ESC) // Left Shift on hold, Escape on tap
  6. #define ________________ KC_TRNS
  7. /* QWERTY Layer
  8. *
  9. * The basic layer of this keymap is a QWERTY layer.
  10. *
  11. * - Modifier keys more closely resemble a standard keyboard's layout.
  12. * - There is a "Nxt L" function that cycles through the QWERTY and
  13. * game layers. This has been implemented by hard coding the jump to the
  14. * next layer in each of the layers using the TO() macro. Currently, the
  15. * "Nxt L" function skips over the momentary layers (i.e., Mouse, Git,
  16. * Lower, Raise, and Convenience layers).
  17. * - There is a "Rst L" function that resets the current layer to the
  18. * QWERTY layer.
  19. * - The "Git" one shot function goes to the macro layer which has Git
  20. * commands implemented.
  21. * - The "Convc" momentary function goes to the Convenience layer which has a
  22. * tenkey. Note: The tenkey will operate using the secondary functions if
  23. * the Number Lock is not enabled (e.g., Left and Right instead of 4 and
  24. * 6).
  25. * - The Right Shift key also doubles as an Enter key if it is tapped rather
  26. * than held.
  27. *
  28. * ,-----------------------------------. ,-----------------------------------.
  29. * | Tab | Q | W | E | R | T | | Y | U | I | O | P |BkSpc|
  30. * |-----------------------------------| |-----------------------------------|
  31. * | Esc | A | S | D | F | G | | H | J | K | L | ; | ' |
  32. * |-----------------------------------| |-----------------------------------|
  33. * |Shift| Z | X | C | V | B | | N | M | , | . | / |Sf/En|
  34. * |-----------------------------------| |-----------------------------------|
  35. * |Cntrl|Super| Alt |Convc|Lower|Space| |Space|Raise| \ | Git |Nxt L|Rst L|
  36. * `-----------------------------------' `-----------------------------------'
  37. */
  38. #define _____________________QWERTY_L1_____________________ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T
  39. #define _____________________QWERTY_L2_____________________ KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G
  40. #define _____________________QWERTY_L3_____________________ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B
  41. #define _____________________QWERTY_L4_____________________ KC_LCTL, KC_LGUI, KC_LALT, MO(_CN), LOWER, KC_SPC
  42. #define _____________________QWERTY_R1_____________________ KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC
  43. #define _____________________QWERTY_R2_____________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT
  44. #define _____________________QWERTY_R3_____________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MC_RSFE
  45. #define _____________________QWERTY_R4_____________________ KC_SPC, RAISE, KC_BSLS, OSL(_GT), TO(_GW), XXXXXXX
  46. /* Raise Layer
  47. *
  48. * The Raise layer accommodates the Home, End, Page Up, and Page Down keys
  49. * in what would be the Vim arrow keys positions. This is done as opposed
  50. * to using C-D, C-U, 0, $, and ^, because it would require a separate layer.
  51. *
  52. * - The top row has the shifted versions of the number row, rather than the
  53. * numbers themselves. This is a change to have a mnemonic where shifted
  54. * elements are on the Raise layer. This also makes it easy to use some of
  55. * Vim style movement controls (e.g. $, %), but makes it harder for others
  56. * (e.g. ^, (, )). Consider swapping the number row with the shifted number
  57. * row if you do not care about the mnemonic.
  58. * - The Left Brace, Right Brace, Underscore, and Plus keys have been moved
  59. * from the right side to the left side. This will take some getting used
  60. * to, as these keys are normally on the right side of the keyboard. An
  61. * alternative would be to keep the keys on the right hand side just under
  62. * the Parentheses. This would prevent the use of Vim arrow keys however.
  63. * - The F keys have been laid across the bottom in the Raise layer, rather
  64. * than the Lower layer to allow easy access to the Alt-F4 chord for
  65. * Windows. When the F keys were put in the Lower layer, it made it hard
  66. * to use this chord, as the Lower key, the Alt key, and the F4 key were
  67. * all right next to each other.
  68. * - A Delete key has been added in this layer to allow easy access to the
  69. * Control-Alt-Delete login chord for Windows.
  70. *
  71. * ,-----------------------------------. ,-----------------------------------.
  72. * | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | Del |
  73. * |-----------------------------------| |-----------------------------------|
  74. * | | _ | + | { | } | Caps| | Home| PgDn| PgUp| End | | |
  75. * |-----------------------------------| |-----------------------------------|
  76. * | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | |
  77. * |-----------------------------------| |-----------------------------------|
  78. * | | | | | | | | | | | | | |
  79. * `-----------------------------------' `-----------------------------------'
  80. */
  81. #define ______________________RAISE_L1_____________________ KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC
  82. #define ______________________RAISE_L2_____________________ _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_CAPS
  83. #define ______________________RAISE_L3_____________________ _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5
  84. #define ______________________RAISE_L4_____________________ _______, _______, _______, _______, _______, _______
  85. #define ______________________RAISE_R1_____________________ KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DELT
  86. #define ______________________RAISE_R2_____________________ KC_HOME, KC_PGDN, KC_PGUP, KC_END, XXXXXXX, XXXXXXX
  87. #define ______________________RAISE_R3_____________________ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______
  88. #define ______________________RAISE_R4_____________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX
  89. /* Lower Layer
  90. *
  91. * The lower layout scheme accommodates the Vim style arrow keys.
  92. *
  93. * - The arrow keys are in the normal Vim positions.
  94. * - The Left Square Bracket, Right Square Bracket, Minus, and Equal keys
  95. * have been moved from the right side to the left side. This will take
  96. * some getting used to, as it is on the left rather than the right.
  97. * - A Delete key has been added in this layer to allow easy access to the
  98. * Control-Alt-Delete login chord for Windows.
  99. * - The remaining F keys are in this layer.
  100. *
  101. * ,-----------------------------------. ,-----------------------------------.
  102. * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
  103. * |-----------------------------------| |-----------------------------------|
  104. * | | - | = | [ | ] | | | Left| Down| Up |Right| | |
  105. * |-----------------------------------| |-----------------------------------|
  106. * | | F11 | F12 | | | | | | | | | | |
  107. * |-----------------------------------| |-----------------------------------|
  108. * | | | | | | | | | | | | | |
  109. * `-----------------------------------' `-----------------------------------'
  110. */
  111. #define ______________________LOWER_L1_____________________ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5
  112. #define ______________________LOWER_L2_____________________ _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, XXXXXXX
  113. #define ______________________LOWER_L3_____________________ _______, KC_F11, KC_F12, XXXXXXX, XXXXXXX, XXXXXXX
  114. #define ______________________LOWER_L4_____________________ _______, _______, _______, _______, _______, _______
  115. #define ______________________LOWER_R1_____________________ KC_6, KC_7, KC_8, KC_9, KC_0, KC_DELT
  116. #define ______________________LOWER_R2_____________________ KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX
  117. #define ______________________LOWER_R3_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______
  118. #define ______________________LOWER_R4_____________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX
  119. /* MIT Layout (Mouse)
  120. *
  121. * The mouse layer adds keys to use the keyboard like a mouse.
  122. *
  123. * ,-----------------------------------. ,-----------------------------------.
  124. * | | | | | | | | | | | | | |
  125. * |-----------------------------------| |-----------------------------------|
  126. * | | | |Ms-Lc|Ms-Rc| | | Ms-L| Ms-D| Ms-U| Ms-R| | |
  127. * |-----------------------------------| |-----------------------------------|
  128. * | | | | | | | | | | | | | |
  129. * |-----------------------------------| |-----------------------------------|
  130. * | | | | | | | | | | | | | |
  131. * `-----------------------------------' `-----------------------------------'
  132. */
  133. #define ______________________MOUSE_L1_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
  134. #define ______________________MOUSE_L2_____________________ _______, XXXXXXX, XXXXXXX, KC_BTN1, KC_BTN2, XXXXXXX
  135. #define ______________________MOUSE_L3_____________________ _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
  136. #define ______________________MOUSE_L4_____________________ _______, _______, _______, _______, _______, _______
  137. #define ______________________MOUSE_R1_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
  138. #define ______________________MOUSE_R2_____________________ KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, XXXXXXX, XXXXXXX
  139. #define ______________________MOUSE_R3_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______
  140. #define ______________________MOUSE_R4_____________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX
  141. /* MIT Layout (Git)
  142. *
  143. * The macro layer that has common git commands.
  144. *
  145. * ,-----------------------------------. ,-----------------------------------.
  146. * | |Chery| Show|Rebas|Reset| Tag | | | Pull| Init|Rmote| Push| |
  147. * |-----------------------------------| |-----------------------------------|
  148. * | | Add |Sttus| Diff|Fetch| Grep| |Stash| |ChkOt| Log | | |
  149. * |-----------------------------------| |-----------------------------------|
  150. * | | | |Comit| Move|Brnch| | |Merge| | | | |
  151. * |-----------------------------------| |-----------------------------------|
  152. * | | | | | | | | | | | | | |
  153. * `-----------------------------------' `-----------------------------------'
  154. */
  155. #define _______________________GIT_L1______________________ XXXXXXX, GIT_CHR, GIT_SHW, GIT_RBS, GIT_RST, GIT_TAG
  156. #define _______________________GIT_L2______________________ _______, GIT_ADD, GIT_STS, GIT_DIF, GIT_FTC, GIT_GRP
  157. #define _______________________GIT_L3______________________ _______, XXXXXXX, XXXXXXX, GIT_CMT, GIT_MOV, GIT_BRC
  158. #define _______________________GIT_L4______________________ _______, _______, _______, _______, _______, _______
  159. #define _______________________GIT_R1______________________ XXXXXXX, GIT_PUL, GIT_INT, GIT_RMT, GIT_PSH, XXXXXXX
  160. #define _______________________GIT_R2______________________ GIT_STH, XXXXXXX, GIT_CHK, GIT_LOG, XXXXXXX, XXXXXXX
  161. #define _______________________GIT_R3______________________ XXXXXXX, GIT_MRG, XXXXXXX, XXXXXXX, XXXXXXX, _______
  162. #define _______________________GIT_R4______________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX
  163. /* MIT Layout (Convenience)
  164. *
  165. * The Convenience layer adds a tenkey and miscellaneous chords to the keyboard.
  166. * The lack of a fifth row means that some of the tenkey's functions need to be
  167. * moved to the left of tenkey from the top.
  168. *
  169. * - The Number Lock key is physically in the same spot as the Caps Lock key
  170. * in the raise layer.
  171. * - There is also a Backspace Key for convenience.
  172. * - There is a convenience macro to type the Control-Alt-Delete login chord for Windows.
  173. * - There is a convenience macro to Minimize Remote Desktop within Remote Desktop
  174. * in Windows.
  175. * - There is a convenience macro to cycle through programs in Windows.
  176. * - There is a convenience macro to go to the previous program in Windows.
  177. *
  178. * ,-----------------------------------. ,-----------------------------------.
  179. * | | |Insrt|ScrLk|PrtSc| | | * | 7 | 8 | 9 | - |BkSpc|
  180. * |-----------------------------------| |-----------------------------------|
  181. * | | | App | LCAD|MRDP7|NmLck| | / | 4 | 5 | 6 | + | |
  182. * |-----------------------------------| |-----------------------------------|
  183. * | | | | ATRD|MRDP8| | | | 1 | 2 | 3 |Enter| |
  184. * |-----------------------------------| |-----------------------------------|
  185. * | | | | | | | | | 0 | 0 | . | | |
  186. * `-----------------------------------' `-----------------------------------'
  187. */
  188. #define ___________________CONVENIENCE_L1__________________ XXXXXXX, XXXXXXX, KC_INS, KC_SLCK, KC_PSCR, XXXXXXX
  189. #define ___________________CONVENIENCE_L2__________________ _______, XXXXXXX, KC_APP, MC_LCAD, MC_MRD7, KC_NLCK
  190. #define ___________________CONVENIENCE_L3__________________ _______, XXXXXXX, XXXXXXX, MC_ATRD, MC_MRD8, XXXXXXX
  191. #define ___________________CONVENIENCE_L4__________________ _______, _______, _______, _______, _______, _______
  192. #define ___________________CONVENIENCE_R1__________________ KC_PAST, KC_P7, KC_P8, KC_P9, KC_PMNS, KC_BSPC
  193. #define ___________________CONVENIENCE_R2__________________ KC_PSLS, KC_P4, KC_P5, KC_P6, KC_PPLS, XXXXXXX
  194. #define ___________________CONVENIENCE_R3__________________ XXXXXXX, KC_P1, KC_P2, KC_P3, KC_PENT, _______
  195. #define ___________________CONVENIENCE_R4__________________ _______, KC_P0, KC_P0, KC_PDOT, XXXXXXX, XXXXXXX