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.

78 lines
2.0 KiB

  1. /* Copyright 2020 Paul James
  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 "eeconfig.h"
  19. enum custom_layers {
  20. _BASE = 0,
  21. _SYMBOL,
  22. _FUNCTION,
  23. _ADJUST,
  24. };
  25. // Fillers to make layering more clear
  26. #define ______2 KC_TRNS, KC_TRNS
  27. #define ______3 KC_TRNS, KC_TRNS, KC_TRNS
  28. #define ______4 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
  29. #define ______5 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
  30. enum custom_keycodes {
  31. MC_ARR = SAFE_RANGE,
  32. MC_DARR,
  33. MC_DEQL,
  34. MC_TEQL,
  35. KC_RESET
  36. };
  37. #define SYMBOL MO(_SYMBOL)
  38. #define FUNCT MO(_FUNCTION)
  39. #define ADJUST MO(_ADJUST)
  40. #define FN_SPC LT(_FUNCTION, KC_SPC)
  41. #define SY_SPC LT(_SYMBOL, KC_SPC)
  42. #define FN_F LT(_FUNCTION, KC_F)
  43. #define SY_J LT(_SYMBOL, KC_J)
  44. #define CTLESC LCTL_T(KC_ESC)
  45. #define SFTENT RSFT_T(KC_ENT)
  46. #define LOCK LCTL(LGUI(KC_Q))
  47. #define BACK LGUI(KC_LBRC)
  48. #define FORWARD LGUI(KC_RBRC)
  49. #define NXTFUNC LCTL(KC_DOWN)
  50. #define PRVFUNC LCTL(KC_UP)
  51. #define TOP LGUI(KC_UP)
  52. #define BOTTOM LGUI(KC_DOWN)
  53. #ifdef LAYOUT_ortho_4x12
  54. #define LAYOUT_PEEJ(...) LAYOUT_ortho_4x12(__VA_ARGS__)
  55. #endif
  56. #ifdef LAYOUT_ortho_5x12
  57. #define LAYOUT_PEEJ(...) LAYOUT_ortho_5x12(__VA_ARGS__)
  58. #endif
  59. #ifdef LAYOUT_ortho_hhkb
  60. #define LAYOUT_PEEJ_hhkb(...) LAYOUT_ortho_hhkb(__VA_ARGS__)
  61. #endif
  62. #ifdef LAYOUT_ortho_7u
  63. #define LAYOUT_PEEJ_7u(...) LAYOUT_ortho_7u(__VA_ARGS__)
  64. #endif
  65. #include "layout.h"