logo

qmk_firmware

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

keymap.c (1399B)


  1. /* Copyright 2019 zk-phi
  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. #ifdef RGBLIGHT_ENABLE
  18. //Following line allows macro to read current RGB settings
  19. extern rgblight_config_t rgblight_config;
  20. #endif
  21. enum layers {
  22. DEFAULT,
  23. RAISE,
  24. LOWER,
  25. ADJUST
  26. };
  27. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  28. [DEFAULT] = LAYOUT(
  29. LT(RAISE, KC_F5), KC_UP, LT(LOWER, KC_PSCR),
  30. KC_LEFT, KC_DOWN, KC_RIGHT
  31. ),
  32. [RAISE] = LAYOUT(
  33. _______, KC_PGUP, MO(ADJUST),
  34. KC_HOME, KC_PGDN, KC_END
  35. ),
  36. [LOWER] = LAYOUT(
  37. MO(ADJUST), _______, _______,
  38. _______, _______, _______
  39. ),
  40. [ADJUST] = LAYOUT(
  41. _______, UG_TOGG, _______,
  42. RGB_M_SN, RGB_M_P, UG_HUEU
  43. )
  44. };