riblee.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. _LOWER,
  24. _RAISE,
  25. _ADJUST
  26. };
  27. enum custom_keycodes {
  28. QWERTY = SAFE_RANGE,
  29. HUNGARIAN,
  30. COLEMAK,
  31. DVORAK,
  32. BACKLIT
  33. };
  34. #define LOWER MO(_LOWER)
  35. #define RAISE MO(_RAISE)
  36. // Tap Dance declarations
  37. enum {
  38. TD_A,
  39. TD_E,
  40. TD_I,
  41. TD_O,
  42. TD_U,
  43. };
  44. void dance_key_a (qk_tap_dance_state_t *, void *);
  45. void dance_key_e (qk_tap_dance_state_t *, void *);
  46. void dance_key_i (qk_tap_dance_state_t *, void *);
  47. void dance_key_o (qk_tap_dance_state_t *, void *);
  48. void dance_key_u (qk_tap_dance_state_t *, void *);
  49. layer_state_t layer_state_set_user(layer_state_t);
  50. bool process_record_user(uint16_t keycode, keyrecord_t *record);