Keyboard firmwares for Atmel AVR and Cortex-M
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.

keymap_hasu.c 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. Copyright 2014 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 PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  18. /* Default:
  19. * M0110
  20. * ,---------------------------------------------------------.
  21. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backs|
  22. * |---------------------------------------------------------|
  23. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
  24. * |---------------------------------------------------------|
  25. * |Ctrl | A| S| D| F| G| H| J| K| L| Fn| '|Return|
  26. * |---------------------------------------------------------|
  27. * |Shift | Z| X| C| V| B| N| M| ,| ,| Fn|Shift |
  28. * `---------------------------------------------------------'
  29. * |Fn |alt | Fn |Gui |Fn |
  30. * `-----------------------------------------------'
  31. */
  32. [0] = KEYMAP(
  33. ESC, 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, P7, P8, P9, PMNS,
  35. LCTL,A, S, D, F, G, H, J, K, L, FN3, QUOT, ENT, P4, P5, P6, PPLS,
  36. LSFT,Z, X, C, V, B, N, M, COMM,DOT, FN1, UP, P1, P2, P3, PENT,
  37. FN0, LALT, FN2, LGUI,BSLS,LEFT,RGHT,DOWN, P0, PDOT
  38. ),
  39. // IJKL cursor
  40. [1] = KEYMAP(
  41. GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
  42. CAPS,NO, NO, NO, NO, NO, HOME,PGDN,UP, PGUP,END, NO, NO, P7, P8, P9, PMNS,
  43. LCTL,VOLD,VOLU,MUTE,NO, NO, HOME,LEFT,DOWN,RGHT,END, NO, ENT, P4, P5, P6, PPLS,
  44. LSFT,NO, NO, NO, NO, NO, HOME,PGDN,PGUP,END, NO, PGUP, P1, P2, P3, PENT,
  45. TRNS,LALT, SPC, LGUI,BSLS,HOME,END, PGDN, P0, PDOT
  46. ),
  47. // HJKL cursor
  48. [2] = KEYMAP(
  49. GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
  50. CAPS,NO, NO, NO, NO, NO, HOME,PGDN,UP, PGUP,END, NO, NO, P7, P8, P9, PMNS,
  51. LCTL,VOLD,VOLU,MUTE,NO, NO, LEFT,DOWN,UP, RGHT,NO, NO, ENT, P4, P5, P6, PPLS,
  52. LSFT,NO, NO, NO, NO, NO, HOME,PGDN,PGUP,END, TRNS, PGUP, P1, P2, P3, PENT,
  53. TRNS,LALT, SPC, LGUI,BSLS,HOME,END, PGDN, P0, PDOT
  54. ),
  55. // Mousekey
  56. [3] = KEYMAP(
  57. GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
  58. CAPS,Q, W, E, R, T, WH_L,WH_D,MS_U,WH_U,WH_R,WBAK,WFWD, P7, P8, P9, PMNS,
  59. LCTL,VOLD,VOLU,MUTE,NO, NO, BTN2,MS_L,MS_D,MS_R,BTN1,NO, ENT, P4, P5, P6, PPLS,
  60. LSFT,Z, X, C, V, B, BTN2,BTN1,BTN4,BTN5,NO, PGUP, P1, P2, P3, PENT,
  61. NO, LALT, TRNS, LGUI,BSLS,HOME,END, PGDN, P0, PDOT
  62. ),
  63. // Mousekey
  64. [4] = KEYMAP(
  65. GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
  66. CAPS,Q, W, E, R, T, WH_L,WH_D,MS_U,WH_U,WH_R,WBAK,WFWD, P7, P8, P9, PMNS,
  67. LCTL,VOLD,VOLU,MUTE,NO, NO, BTN2,MS_L,MS_D,MS_R,TRNS,NO, ENT, P4, P5, P6, PPLS,
  68. LSFT,Z, X, C, V, B, BTN2,BTN1,BTN4,BTN5,NO, PGUP, P1, P2, P3, PENT,
  69. NO, LALT, BTN1, LGUI,BSLS,HOME,END, PGDN, P0, PDOT
  70. ),
  71. };
  72. /*
  73. * Fn action definition
  74. */
  75. const action_t fn_actions[] PROGMEM = {
  76. [0] = ACTION_LAYER_MOMENTARY(1),
  77. [1] = ACTION_LAYER_TAP_KEY(2, KC_SLASH),
  78. [2] = ACTION_LAYER_TAP_KEY(3, KC_SPACE),
  79. [3] = ACTION_LAYER_TAP_KEY(4, KC_SCOLON),
  80. };