You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4 KiB

  1. /* Copyright 2021 SethBarberee <seth.barberee@gmail.com>
  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. #pragma once
  17. #include QMK_KEYBOARD_H
  18. #include "wrappers.h"
  19. enum layers {
  20. _QWERTY,
  21. _COLEMAK,
  22. _DVORAK,
  23. _LOWER,
  24. _RAISE,
  25. _ADJUST
  26. };
  27. enum userspace_keycodes {
  28. KC_VRSN = SAFE_RANGE,
  29. KC_QWER,
  30. KC_COLE,
  31. KC_DVOR,
  32. NEW_SAFE_RANGE
  33. };
  34. #define KC_LOWR MO(_LOWER)
  35. #define KC_RASE MO(_RAISE)
  36. #ifdef TAP_DANCE_ENABLE
  37. # include "tap_dance.h"
  38. #endif
  39. #ifdef RGBLIGHT_ENABLE
  40. # include "rgb_light.h"
  41. #endif
  42. void keyboard_pre_init_keymap(void);
  43. void keyboard_post_init_keymap(void);
  44. void suspend_power_down_keymap(void);
  45. void suspend_wakeup_init_keymap(void);
  46. layer_state_t layer_state_set_keymap (layer_state_t state);
  47. bool process_record_keymap(uint16_t keycode, keyrecord_t *record);