logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

keymap.c (1602B)


  1. /* Copyright 2019 joaofbmaia
  2. *
  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. *
  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. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include QMK_KEYBOARD_H
  17. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  18. /* LAYER 0
  19. * ,-----------------------.
  20. * | ESC | ~ | SPC/FN| Hold for FN
  21. * |-------+-------+-------|
  22. * | C | Z | X |
  23. * `-------+-------+-------'
  24. */
  25. [0] = LAYOUT(
  26. KC_ESC, KC_GRAVE, LT(1, KC_SPC),
  27. KC_C, KC_Z, KC_X
  28. ),
  29. /* LAYER 1
  30. * ,-----------------------.
  31. * |UG_TOGG|RGBMOD+| |
  32. * |-------+-------+-------|
  33. * |RGBHUE+|RGBBRI+|Spec FN| Hold along with previous to access special funtions (QK_BOOT)
  34. * `-------+-------+-------'
  35. */
  36. [1] = LAYOUT(
  37. UG_TOGG, UG_NEXT, KC_TRNS,
  38. UG_HUEU, UG_VALU, MO(2)
  39. ),
  40. /* LAYER 2
  41. * ,-----------------------.
  42. * | QK_BOOT |RGBMOD-| |
  43. * |-------+-------+-------|
  44. * |RGBHUE-|RGBBRI-| |
  45. * `-------+-------+-------'
  46. */
  47. [2] = LAYOUT(
  48. QK_BOOT, UG_PREV, KC_NO,
  49. UG_HUED, UG_VALD, KC_TRNS
  50. )
  51. };