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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

keymap.c 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*
  2. Copyright 2012 Jun Wako <[email protected]>
  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. #include "keymap_common.h"
  15. const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
  16. /* 0: plain Qwerty without layer switching
  17. * ,---------------. ,---------------. ,---------------.
  18. * |F13|F14|F15|F16| |F17|F18|F19|F20| |F21|F22|F23|F24|
  19. * ,---. |---------------| |---------------| |---------------| ,-----------. ,---------------. ,-------.
  20. * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau| |VDn|VUp|Mut|Pwr| | Help |
  21. * `---' `---------------' `---------------' `---------------' `-----------' `---------------' `-------'
  22. * ,-----------------------------------------------------------. ,-----------. ,---------------. ,-------.
  23. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|JPY|Bsp| |Ins|Hom|PgU| |NmL| /| *| -| |Stp|Agn|
  24. * |-----------------------------------------------------------| |-----------| |---------------| |-------|
  25. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | |Del|End|PgD| | 7| 8| 9| +| |Mnu|Und|
  26. * |-----------------------------------------------------------| `-----------' |---------------| |-------|
  27. * |CapsL | A| S| D| F| G| H| J| K| L| ;| :| #|Retn| | 4| 5| 6|KP,| |Sel|Cpy|
  28. * |-----------------------------------------------------------| ,---. |---------------| |-------|
  29. * |Shft| <| Z| X| C| V| B| N| M| ,| ,| /| RO|Shift | |Up | | 1| 2| 3|KP=| |Exe|Pst|
  30. * |-----------------------------------------------------------| ,-----------. |---------------| |-------|
  31. * |Ctl|Gui|Alt|MHEN|HNJ| Space |H/E|HENK|KANA|Alt|Gui|App|Ctl| |Lef|Dow|Rig| | 0 | .|Ent| |Fnd|Cut|
  32. * `-----------------------------------------------------------' `-----------' `---------------' `-------'
  33. */
  34. KEYMAP_ALL(
  35. F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24,
  36. ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE,PWR, HELP,
  37. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, STOP,AGIN,
  38. TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, MENU,UNDO,
  39. CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, NUHS,ENT, P4, P5, P6, PCMM, SLCT,COPY,
  40. LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RO, RSFT, UP, P1, P2, P3, PEQL, EXEC,PSTE,
  41. LCTL,LGUI,LALT,MHEN,HANJ, SPC, HAEN,HENK,KANA,RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT, FIND,CUT
  42. ),
  43. #if 0
  44. /* Colemak http://colemak.com
  45. * ,-----------------------------------------------------------.
  46. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backspa|
  47. * |-----------------------------------------------------------|
  48. * |Tab | Q| W| F| P| G| J| L| U| Y| ;| [| ]| \|
  49. * |-----------------------------------------------------------|
  50. * |BackSp| A| R| S| T| D| H| N| E| I| O| '|Return |
  51. * |-----------------------------------------------------------|
  52. * |Shift | Z| X| C| V| B| K| M| ,| ,| /|Shift |
  53. * |-----------------------------------------------------------|
  54. * |Ctrl |Gui |Alt | Space |Alt |Gui |Menu|Ctrl|
  55. * `----------------------------------------------------------'
  56. */
  57. KEYMAP_ALL(
  58. F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24,
  59. ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE,PWR, HELP,
  60. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, STOP,AGIN,
  61. TAB, Q, W, F, P, G, J, L, U, Y, SCLN,LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, MENU,UNDO,
  62. BSPC,A, R, S, T, D, H, N, E, I, O, QUOT, NUHS,ENT, P4, P5, P6, PCMM, SLCT,COPY,
  63. LSFT,NUBS,Z, X, C, V, B, K, M, COMM,DOT, SLSH, RO, RSFT, UP, P1, P2, P3, PEQL, EXEC,PSTE,
  64. LCTL,LGUI,LALT,MHEN,HANJ, SPC, HAEN,HENK,KANA,RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT, FIND,CUT
  65. ),
  66. /* Dvorak http://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard
  67. * ,-----------------------------------------------------------.
  68. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| [| ]|Backspa|
  69. * |-----------------------------------------------------------|
  70. * |Tab | '| ,| .| P| Y| F| G| C| R| L| /| =| \|
  71. * |-----------------------------------------------------------|
  72. * |BackSp| A| O| E| U| I| D| H| T| N| S| -|Return |
  73. * |-----------------------------------------------------------|
  74. * |Shift | ;| Q| J| K| X| B| M| Wl V| Z|Shift |
  75. * |-----------------------------------------------------------|
  76. * |Ctrl |Gui |Alt | Space |Alt |Gui |Menu|Ctrl|
  77. * `-----------------------------------------------------------'
  78. */
  79. KEYMAP_ALL(
  80. F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24,
  81. ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE,PWR, HELP,
  82. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, LBRC,RBRC,JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, STOP,AGIN,
  83. TAB, QUOT,COMM,DOT, P, Y, F, G, C, R, L, SLSH,EQL, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, MENU,UNDO,
  84. CAPS,A, O, E, U, I, D, H, T, N, S, MINS, NUHS,ENT, P4, P5, P6, PCMM, SLCT,COPY,
  85. LSFT,NUBS,SCLN,Q, J, K, X, B, M, W, V, Z, RO, RSFT, UP, P1, P2, P3, PEQL, EXEC,PSTE,
  86. LCTL,LGUI,LALT,MHEN,HANJ, SPC, HAEN,HENK,KANA,RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT, FIND,CUT
  87. ),
  88. /* Workman http://viralintrospection.wordpress.com/2010/09/06/a-different-philosophy-in-designing-keyboard-layouts/
  89. * ,-----------------------------------------------------------.
  90. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backspa|
  91. * |-----------------------------------------------------------|
  92. * |Tab | Q| D| R| W| B| J| F| U| P| ;| [| ]| \|
  93. * |-----------------------------------------------------------|
  94. * |CapsLo| A| S| H| T| G| Y| N| E| O| I| '|Return |
  95. * |-----------------------------------------------------------|
  96. * |Shift | Z| X| M| C| V| K| L| ,| ,| /|Shift |
  97. * |-----------------------------------------------------------|
  98. * |Ctrl |Gui |Alt | Space |Alt |Gui |Menu|Ctrl|
  99. * `-----------------------------------------------------------'
  100. */
  101. KEYMAP_ALL(
  102. F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24,
  103. ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE,PWR, HELP,
  104. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, STOP,AGIN,
  105. TAB, Q, D, R, W, B, J, F, U, P, SCLN,LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, MENU,UNDO,
  106. CAPS,A, S, H, T, G, Y, N, E, O, I, QUOT, NUHS,ENT, P4, P5, P6, PCMM, SLCT,COPY,
  107. LSFT,NUBS,Z, X, M, C, V, K, L, COMM,DOT, SLSH, RO, RSFT, UP, P1, P2, P3, PEQL, EXEC,PSTE,
  108. LCTL,LGUI,LALT,MHEN,HANJ, SPC, HAEN,HENK,KANA,RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT, FIND,CUT
  109. ),
  110. #endif
  111. };
  112. const uint16_t fn_actions[] PROGMEM = {};