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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. Copyright 2015 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 <stdint.h>
  15. #include "keycode.h"
  16. #include "keymap_common.h"
  17. const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
  18. /* International keyboard
  19. * M0110 M0120
  20. * ,---------------------------------------------------------. ,---------------.
  21. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backs| |Nlk| -| +| *|
  22. * |---------------------------------------------------------| |---------------|
  23. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]|Ret| | 7| 8| 9| /|
  24. * |------------------------------------------------------, | |---------------|
  25. * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '| \| | | 4| 5| 6| ,|
  26. * |---------------------------------------------------------| |---------------|
  27. * |Shif| <| Z| X| C| V| B| N| M| ,| ,| /| | | 1| 2| 3| |
  28. * `---------------------------------------------------------' |-----------|Ent|
  29. * |Opt|Mac | Space |Fn | | | 0| .| |
  30. * `-----------------------------------------------' `---------------'
  31. */
  32. [0] = KEYMAP_INTL(
  33. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, NLCK,EQL, PSLS,PAST,
  34. TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,ENT, P7, P8, P9, PMNS,
  35. LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,BSLS, P4, P5, P6, PPLS,
  36. LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, P1, P2, P3, PENT,
  37. LALT,LGUI, SPC, FN0, P0, PDOT
  38. ),
  39. /* Cursor Layer
  40. * ,---------------------------------------------------------. ,---------------.
  41. * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delet| |Nlk| -| +| *|
  42. * |---------------------------------------------------------| |---------------|
  43. * |Caps |Hom| Up|PgU| | | | |Psc|Slk|Pau|Up | |Ret| | 7| 8| 9| /|
  44. * |------------------------------------------------------, | |---------------|
  45. * |Ctrl |Lef|Dow|Rig| | | | |Hom|PgU|Lef|Rig|Ins| | | 4| 5| 6| ,|
  46. * |---------------------------------------------------------| |---------------|
  47. * |Shif| <|End| |PgD| | | | |End|PgD|Dow| | | 1| 2| 3| |
  48. * `---------------------------------------------------------' |-----------|Ent|
  49. * |Opt|Mac | Space |Fn | | | 0| .| |
  50. * `-----------------------------------------------' `---------------'
  51. */
  52. [1] = KEYMAP_INTL(
  53. ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
  54. CAPS,HOME,UP, PGUP,NO, NO, NO, NO, PSCR,SLCK,PAUS,UP, NO, ENT, P7, P8, P9, PMNS,
  55. LCTL,LEFT,DOWN,RGHT,NO, NO, NO, NO, HOME,PGUP,LEFT,RGHT,INS, P4, P5, P6, PPLS,
  56. LSFT,NO, END, NO, PGDN,NO, NO, NO, NO, END, PGDN,DOWN, P1, P2, P3, PENT,
  57. LALT,LGUI, SPC, FN0, P0, PDOT
  58. ),
  59. };
  60. /*
  61. * Fn action definition
  62. */
  63. const uint16_t fn_actions[] PROGMEM = {
  64. [0] = ACTION_LAYER_MOMENTARY(1),
  65. };