keymap.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. Copyright 2016 Julien Pecqueur <julien@peclu.net>
  3. Copyright 2016 Felix Uhl <ifreilicht@gmail.com>
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #include QMK_KEYBOARD_H
  16. #define KC_MO1 MO(1)
  17. #define KC_SPFN LT(1, KC_SPC)
  18. #define KC_SDEL S(KC_DEL)
  19. #define KC_CINS C(KC_INS)
  20. #define KC_SINS S(KC_INS)
  21. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  22. /* Layout 0: Default Layer
  23. * ,-----------------------------------------------------------.
  24. * |` | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |
  25. * |-----------------------------------------------------------|
  26. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
  27. * |-----------------------------------------------------------|
  28. * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Return |
  29. * |-----------------------------------------------------------|
  30. * |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |
  31. * |-----------------------------------------------------------|
  32. * |Fn1 |Gui |Alt | SpaceFn |Alt |Gui |App |Ctrl|
  33. * `-----------------------------------------------------------'
  34. */
  35. LAYOUT_kc(
  36. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, BSPC, BSPC, \
  37. TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC, BSLS, \
  38. LCTL, A, S, D, F, G, H, J, K, L, SCLN, QUOT, NUHS, ENT, \
  39. LSFT, NUBS, Z, X, C, V, B, N, M, COMM, DOT, SLSH, NO, RSFT, NO, \
  40. MO1, LGUI, LALT, SPFN, RALT, RGUI, APP, RCTL),
  41. /* Layout 1: Function Layer
  42. * ,-----------------------------------------------------------.
  43. * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete |
  44. * |-----------------------------------------------------------|
  45. * | |Prv|Ply|Nxt|Stp| | |PUp|Up |PDn| |Slk|Pau|Ins |
  46. * |-----------------------------------------------------------|
  47. * | |Vl-|Mut|Vl+| | |Hom|Lef|Dow|Rig|End| |PEnt |
  48. * |-----------------------------------------------------------|
  49. * | |Prt|Cut|Cop|Pst|Cal| | | | | |CapsLock |
  50. * |-----------------------------------------------------------|
  51. * | | | | | | | | |
  52. * `-----------------------------------------------------------'
  53. */
  54. LAYOUT_kc(
  55. ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, DEL, \
  56. TRNS, MPRV, MPLY, MNXT, MSTP, TRNS, TRNS, PGUP, UP, PGDN, TRNS, SLCK, PAUS, INS, \
  57. TRNS, VOLD, MUTE, VOLU, TRNS, TRNS, HOME, LEFT, DOWN, RGHT, END, TRNS, TRNS, PENT, \
  58. TRNS, TRNS, PSCR, SDEL, CINS, SINS, CALC, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, CAPS, TRNS, \
  59. TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS),
  60. };
  61. void matrix_init_user(void) {
  62. }
  63. void matrix_scan_user(void) {
  64. }
  65. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  66. return true;
  67. }
  68. void led_set_user(uint8_t usb_led) {
  69. }