keymap.c 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. #include "mechmini.h"
  14. #define _BL 0
  15. #define _FN1 1
  16. #define _FN2 2
  17. #define _FN3 3
  18. #define _____ KC_TRNS
  19. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  20. [_BL] = KEYMAP(
  21. KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
  22. KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
  23. KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, MO(_FN2),
  24. KC_LCTL, KC_LGUI, KC_LALT, _____, KC_SPC, _____, MO(_FN1), MO(_FN3)
  25. ),
  26. [_FN1] = KEYMAP(
  27. _____, _____, KC_UP, KC_MUTE, KC_VOLD, KC_VOLU, KC_MRWD, KC_MPLY, KC_MFFD, KC_SLCK, KC_PAUS, KC_DEL,
  28. KC_CAPS, KC_LEFT, KC_DOWN, KC_RIGHT, _____, _____, _____, KC_INS, KC_HOME, KC_PGUP, KC_PSCR,
  29. _____, _____, _____, _____, _____, _____, _____, KC_END, KC_PGDN, _____, _____,
  30. _____, _____, _____, _____, _____, _____, _____, _____
  31. ),
  32. [_FN2] = KEYMAP(
  33. KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
  34. KC_CAPS, _____, _____, _____, _____, KC_LBRC, KC_RBRC, KC_BSLS, KC_MINS, KC_EQL, _____,
  35. _____, _____, _____, _____, _____, _____, _____, KC_SCLN, KC_QUOT, KC_SLSH, _____,
  36. _____, _____, _____, _____, _____, _____, _____, _____
  37. ),
  38. [_FN3] = KEYMAP(
  39. KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
  40. _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,
  41. _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,
  42. _____, _____, _____, _____, _____, _____, _____, _____
  43. )
  44. };
  45. /**
  46. * Blank keymap
  47. [0] = KEYMAP(
  48. _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____
  49. _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,
  50. _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,
  51. _____, _____, _____, _____, _____, _____, _____, _____
  52. )
  53. */
  54. const uint16_t PROGMEM fn_actions[] = {
  55. };