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.

161 lines
4.9 KiB

Updating my maps in upstream master (#2987) * Adding Rama M10-A Macropad * ch-ch-ch changes... * Major overhaul based on SMT's keymap. * more changes. * Moved the FKeys to the ADJUST layer. * More rearranging. * Alias in Atreus62 keymap to make it more legible Added config.h to fix tapping_term issue for Caps Lock key in OSX * Added OrthoDox layout. * More layout changes. * Fixing things with the keyboard. * Finishing touches. Set left-hand master in config.h Embedded the arrow keys in keymap.c * Revised keymap making this easier to use. * additions and changes. * changes to various keymaps. * Minor adjustments to OrthoDox layout. * Added Eco keymap. Updated Let's Split keymap. * Added gherkin * Removed my M10A keymap * Planck Keymap Updates Updated my Planck keymap and created a simple keymap for Seph's Preonic. * Added readme * readme fixes * Update readme.md more clarification * Keymap Tweaks Removed the Power button setting from the keymap. It was in a horrible location. I'll work on getting it setup somewhere else sometime later. * Added Readme I finally got around to adding a readme to this keymap. I've also added minor changes to the layout. * Fixed Keymap Error * Fixed Readme * adding iris and levinson keymaps * Tweaks to keymap * added youngJZ keymap * Changes to keymap Added a readme.md * Levinson changes Added the readme.md and rules.mk files. Configured RGB underglow and backlighting. * fixed readme * changes to keymaps * Updated keymap * Updated readme.md * Updated Readme (again) * Updated Readme Fixed formatting. Again. * Updated readme This is the last readme update for this keyboard update. I hope. * Added Contra keymap * Kinesis Keymap Update * Updated Keymaps I've updated my Kinesis (Stapelberg) layout and my Clueboard 66 layout. I've also updated my Kinesis Readme. * Clueboard Keymap update Added media keys to my Clueboard 66 Rev2 layout. * Added keymap Added Minidox keymap & rules. Added user function to Let's Split keymap that turns off the red LEDs on the Pro Micros. * New Zen keymap Added Zen keyboard to my list of keyboards, so had to generate a new keymap for it. Also adding some changes to my MiniDox keymap and config.h, as well as my Levinson's config.h. The config.h file changes enable ee_hands. * A few changes for useability I made a few changes to the Minidox keymap to see if I can't make it more useable. I'm also working on streamlining the Zen keyboard keymap to reduce layers. * Re-vamped Iris keymap. * changes * minor keymap change This was a minor keymap change to use mod_tap for the backspace key: ALT when held, BSPC when tapped. * Added Fourier keymap * Keymap Cleanup Moved KC_ESC to KC_CAPS, and changed KC_ESC to KC_GRV This is because of muscle memory, I kept hitting ESC when trying to hit TAB. * Keymap Adjustments Swapped Caps/Esc, put Caps in Raise/Lower layers, put Grv in normal Esc position. Adjusted the readme.md to reflect these changes. * minor tweaks Added code to disable red ProMicro LEDs after flashing. * Clean-up * Corrections to keymap. Fixed a foul-up in the Zen keymap where the lctrl was where the LOWER should have been. * Changes to make this fall in line with the new Layout features * Moving to LAYOUTs for 4x12 boards * fixed config.h file * standardization changes * Reverted Atreus62 keymap to LAYOUT format * Switch Preonic and Nyquist to ortho_5x12 * Corrections to config.h * config.h file tweaks * config.h file tweaks
6 years ago
Updating my maps in upstream master (#2987) * Adding Rama M10-A Macropad * ch-ch-ch changes... * Major overhaul based on SMT's keymap. * more changes. * Moved the FKeys to the ADJUST layer. * More rearranging. * Alias in Atreus62 keymap to make it more legible Added config.h to fix tapping_term issue for Caps Lock key in OSX * Added OrthoDox layout. * More layout changes. * Fixing things with the keyboard. * Finishing touches. Set left-hand master in config.h Embedded the arrow keys in keymap.c * Revised keymap making this easier to use. * additions and changes. * changes to various keymaps. * Minor adjustments to OrthoDox layout. * Added Eco keymap. Updated Let's Split keymap. * Added gherkin * Removed my M10A keymap * Planck Keymap Updates Updated my Planck keymap and created a simple keymap for Seph's Preonic. * Added readme * readme fixes * Update readme.md more clarification * Keymap Tweaks Removed the Power button setting from the keymap. It was in a horrible location. I'll work on getting it setup somewhere else sometime later. * Added Readme I finally got around to adding a readme to this keymap. I've also added minor changes to the layout. * Fixed Keymap Error * Fixed Readme * adding iris and levinson keymaps * Tweaks to keymap * added youngJZ keymap * Changes to keymap Added a readme.md * Levinson changes Added the readme.md and rules.mk files. Configured RGB underglow and backlighting. * fixed readme * changes to keymaps * Updated keymap * Updated readme.md * Updated Readme (again) * Updated Readme Fixed formatting. Again. * Updated readme This is the last readme update for this keyboard update. I hope. * Added Contra keymap * Kinesis Keymap Update * Updated Keymaps I've updated my Kinesis (Stapelberg) layout and my Clueboard 66 layout. I've also updated my Kinesis Readme. * Clueboard Keymap update Added media keys to my Clueboard 66 Rev2 layout. * Added keymap Added Minidox keymap & rules. Added user function to Let's Split keymap that turns off the red LEDs on the Pro Micros. * New Zen keymap Added Zen keyboard to my list of keyboards, so had to generate a new keymap for it. Also adding some changes to my MiniDox keymap and config.h, as well as my Levinson's config.h. The config.h file changes enable ee_hands. * A few changes for useability I made a few changes to the Minidox keymap to see if I can't make it more useable. I'm also working on streamlining the Zen keyboard keymap to reduce layers. * Re-vamped Iris keymap. * changes * minor keymap change This was a minor keymap change to use mod_tap for the backspace key: ALT when held, BSPC when tapped. * Added Fourier keymap * Keymap Cleanup Moved KC_ESC to KC_CAPS, and changed KC_ESC to KC_GRV This is because of muscle memory, I kept hitting ESC when trying to hit TAB. * Keymap Adjustments Swapped Caps/Esc, put Caps in Raise/Lower layers, put Grv in normal Esc position. Adjusted the readme.md to reflect these changes. * minor tweaks Added code to disable red ProMicro LEDs after flashing. * Clean-up * Corrections to keymap. Fixed a foul-up in the Zen keymap where the lctrl was where the LOWER should have been. * Changes to make this fall in line with the new Layout features * Moving to LAYOUTs for 4x12 boards * fixed config.h file * standardization changes * Reverted Atreus62 keymap to LAYOUT format * Switch Preonic and Nyquist to ortho_5x12 * Corrections to config.h * config.h file tweaks * config.h file tweaks
6 years ago
  1. #include QMK_KEYBOARD_H
  2. #include "action_layer.h"
  3. #include "eeconfig.h"
  4. extern keymap_config_t keymap_config;
  5. #define _QWERTY 0
  6. #define _COLEMAK 1
  7. #define _DVORAK 2
  8. #define _LOWER 3
  9. #define _RAISE 4
  10. #define _ADJUST 16
  11. enum custom_keycodes {
  12. QWERTY = SAFE_RANGE,
  13. COLEMAK,
  14. DVORAK,
  15. LOWER,
  16. RAISE,
  17. ADJUST,
  18. };
  19. #define KC_____ KC_TRNS
  20. #define KC_LOWR LOWER
  21. #define KC_RASE RAISE
  22. #define KC_RST RESET
  23. #define KC_BL_S BL_STEP
  24. #define KC_QWRT QWERTY
  25. #define KC_CLMK COLEMAK
  26. #define KC_DVRK DVORAK
  27. #define KC_BSLT ALT_T(KC_BSPC)
  28. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  29. [_QWERTY] = LAYOUT_kc (
  30. EQL , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS,
  31. TAB , Q , W , E , R , T , Y , U , I , O , P ,BSLS,
  32. ESC , A , S , D , F , G , H , J , K , L ,SCLN,QUOT,
  33. LSFT, Z , X , C , V , B ,LOWR, RASE, N , M ,COMM,DOT ,SLSH,RSFT,
  34. LCTL,BSPC,LGUI, ENT ,SPC ,LALT
  35. ),
  36. [_COLEMAK] = LAYOUT_kc (
  37. EQL , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS,
  38. TAB , Q , W , F , P , G , J , L , U , Y ,SCLN,BSPC,
  39. ESC , A , R , S , T , D , H , N , E , I , O ,QUOT,
  40. LSFT, Z , X , C , V , B ,LOWR, RASE, K , M ,COMM,DOT ,SLSH,RSFT,
  41. LCTL,BSPC,LGUI, ENT ,SPC ,LALT
  42. ),
  43. [_DVORAK] = LAYOUT_kc (
  44. GRV , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSLS,
  45. TAB ,QUOT,COMM,DOT , P , Y , F , G , C , R , L ,SLSH,
  46. ESC , A , O , E , U , I , D , H , T , N , S ,MINS,
  47. LSFT,SCLN, Q , J , K , X ,LOWR, RASE, B , M , W , V , Z ,RSFT,
  48. LCTL,BSLT,LGUI, ENT ,SPC ,LALT
  49. ),
  50. [_LOWER] = LAYOUT_kc (
  51. F11 , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F12 ,
  52. TILD,____,____, UP ,____,____, ____,____,____,____,____,____,
  53. CAPS,____,LEFT,DOWN,RGHT,HOME, PGUP,UNDS,PLUS,LCBR,RCBR,PIPE,
  54. BL_S,____,MUTE,VOLD,VOLU,END ,____, ____,PGDN,MPRV,MPLY,MNXT,____,____,
  55. ____,DEL ,____, ____,INS ,____
  56. ),
  57. [_RAISE] = LAYOUT_kc (
  58. F11 , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F12 ,
  59. GRV ,____,____, UP ,____,____, ____,____,____,____,____,____,
  60. CAPS,____,LEFT,DOWN,RGHT,HOME, PGUP,MINS,EQL ,LBRC,RBRC,BSLS,
  61. BL_S,____,MUTE,VOLD,VOLU,END ,____, ____,PGDN,MPRV,MPLY,MNXT,____,____,
  62. ____,DEL ,____, ____,INS ,____
  63. ),
  64. [_ADJUST] = LAYOUT_kc (
  65. F11 , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F12 ,
  66. ____,RST ,____,____,____,____, ____,____,____,____,____,____,
  67. ____,____,____,____,____,____, ____,QWRT,CLMK,DVRK,____,____,
  68. ____,____,____,____,____,____,____, ____,____,____,____,____,____,____,
  69. ____,____,____, ____,____,____
  70. )
  71. };
  72. #ifdef AUDIO_ENABLE
  73. float tone_qwerty[][2] = SONG(QWERTY_SOUND);
  74. #endif
  75. void persistent_default_layer_set(uint16_t default_layer) {
  76. eeconfig_update_default_layer(default_layer);
  77. default_layer_set(default_layer);
  78. }
  79. void matrix_init_user(void) {
  80. // This will disable the red LEDs on the ProMicros
  81. DDRD &= ~(1<<5);
  82. PORTD &= ~(1<<5);
  83. DDRB &= ~(1<<0);
  84. PORTB &= ~(1<<0);
  85. };
  86. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  87. switch (keycode) {
  88. case QWERTY:
  89. if (record->event.pressed) {
  90. #ifdef AUDIO_ENABLE
  91. PLAY_SONG(tone_qwerty);
  92. #endif
  93. persistent_default_layer_set(1UL<<_QWERTY);
  94. }
  95. return false;
  96. break;
  97. case COLEMAK:
  98. if (record->event.pressed) {
  99. #ifdef AUDIO_ENABLE
  100. PLAY_SONG(tone_colemak);
  101. #endif
  102. persistent_default_layer_set(1UL<<_COLEMAK);
  103. }
  104. return false;
  105. break;
  106. case DVORAK:
  107. if (record->event.pressed) {
  108. #ifdef AUDIO_ENABLE
  109. PLAY_SONG(tone_dvorak);
  110. #endif
  111. persistent_default_layer_set(1UL<<_DVORAK);
  112. }
  113. return false;
  114. break;
  115. case LOWER:
  116. if (record->event.pressed) {
  117. layer_on(_LOWER);
  118. update_tri_layer(_LOWER, _RAISE, _ADJUST);
  119. } else {
  120. layer_off(_LOWER);
  121. update_tri_layer(_LOWER, _RAISE, _ADJUST);
  122. }
  123. return false;
  124. break;
  125. case RAISE:
  126. if (record->event.pressed) {
  127. layer_on(_RAISE);
  128. update_tri_layer(_LOWER, _RAISE, _ADJUST);
  129. } else {
  130. layer_off(_RAISE);
  131. update_tri_layer(_LOWER, _RAISE, _ADJUST);
  132. }
  133. return false;
  134. break;
  135. case ADJUST:
  136. if (record->event.pressed) {
  137. layer_on(_ADJUST);
  138. } else {
  139. layer_off(_ADJUST);
  140. }
  141. return false;
  142. break;
  143. }
  144. return true;
  145. }