keymap.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. Copyright 2018 Kenneth Aloysius
  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 QMK_KEYBOARD_H
  15. enum layers {
  16. _LAYER0,
  17. _LAYER1,
  18. _LAYER2,
  19. _LAYER3
  20. };
  21. const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
  22. /* Keymap 0
  23. * ,-----------.
  24. * | |Up |Fn0|
  25. * |---+---+---|
  26. * |Lef|Dow|Rig|
  27. * `-----------'
  28. */
  29. LAYOUT( KC_UP, TO(_LAYER1), KC_LEFT,KC_DOWN,KC_RIGHT ),
  30. /* Keymap 1
  31. * ,-----------.
  32. * | |PgU|Fn1|
  33. * |---+---+---|
  34. * |Hom|PgD|End|
  35. * `-----------'
  36. */
  37. LAYOUT( KC_PGUP,TO(_LAYER2), KC_HOME,KC_PGDN,KC_END ),
  38. /* Keymap 2
  39. * ,-----------.
  40. * | |Sel|Fn2|
  41. * |---+---+---|
  42. * |Pre|Pla|Nex|
  43. * `-----------'
  44. */
  45. LAYOUT( KC_MSEL,TO(_LAYER3), KC_MPRV,KC_MPLY,KC_MNXT ),
  46. /* Keymap 3
  47. * ,-----------.
  48. * | |MsU|Fn3|
  49. * |---+---+---|
  50. * |MsL|MsD|MsR|
  51. * `-----------'
  52. */
  53. LAYOUT( KC_MS_U,TO(_LAYER0), KC_MS_L,KC_MS_D,KC_MS_R ),
  54. // /* Keymap 4
  55. // * ,-----------.
  56. // * | |Fn6|Fn4|
  57. // * |---+---+---|
  58. // * |Fn7|Fn5|Fn8|
  59. // * `-----------'
  60. // */
  61. // LAYOUT( FN6, FN4, FN7, FN5, FN8 ),
  62. };
  63. const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
  64. return MACRO_NONE ;
  65. }
  66. void matrix_init_user(void) {
  67. }
  68. void matrix_scan_user(void) {
  69. }
  70. void led_set_user(uint8_t usb_led) {
  71. }