keymap.c 1.9 KB

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