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.

59 lines
1.5 KiB

  1. /* Copyright 2020 Janos Daniel Reibl <janos.daniel.reibl@protonmail.com> @riblee
  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. enum layer_names {
  19. _QWERTY,
  20. _HUNGARIAN,
  21. _COLEMAK,
  22. _DVORAK,
  23. _WORKMAN,
  24. _LOWER,
  25. _RAISE,
  26. _ADJUST
  27. };
  28. enum custom_keycodes {
  29. QWERTY = SAFE_RANGE,
  30. HUNGARIAN,
  31. COLEMAK,
  32. DVORAK,
  33. WORKMAN,
  34. BACKLIT
  35. };
  36. #define LOWER MO(_LOWER)
  37. #define RAISE MO(_RAISE)
  38. // Tap Dance declarations
  39. enum {
  40. TD_A,
  41. TD_E,
  42. TD_I,
  43. TD_O,
  44. TD_U,
  45. };
  46. void dance_key_a (qk_tap_dance_state_t *, void *);
  47. void dance_key_e (qk_tap_dance_state_t *, void *);
  48. void dance_key_i (qk_tap_dance_state_t *, void *);
  49. void dance_key_o (qk_tap_dance_state_t *, void *);
  50. void dance_key_u (qk_tap_dance_state_t *, void *);
  51. layer_state_t layer_state_set_user(layer_state_t);
  52. bool process_record_user(uint16_t keycode, keyrecord_t *record);