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.

87 lines
3.3 KiB

  1. /*
  2. Copyright 2020 Nick Christus <nick.christus@hey.com> @nchristus
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. #include QMK_KEYBOARD_H
  16. // Define layer names
  17. enum userspace_layers {
  18. _QWRTY = 0,
  19. _LOWER,
  20. _RAISE,
  21. _ARROW,
  22. _FNCTN,
  23. _ADJST
  24. };
  25. // CTRL / ESC
  26. #define CTL_ESC CTL_T(KC_ESC)
  27. // Force quit dialog
  28. #define C_O_ESC LALT(LGUI(KC_ESC))
  29. // Mac lock
  30. #define MAC_LOK LCTL(LGUI(KC_Q))
  31. // 1Password
  32. #define OPW_OPN LALT(LGUI(KC_BSLS))
  33. #define OPW_CPY S(LGUI(KC_C))
  34. // Screenshotting
  35. #define SCR_FLL S(LGUI(KC_3))
  36. #define SCR_CRP S(LGUI(KC_4))
  37. // FSNotes
  38. #define FSNOTES LALT(LGUI(LSFT(LCTL(KC_0))))
  39. #if (!defined(LAYOUT) && defined(KEYMAP))
  40. #define LAYOUT KEYMAP
  41. #endif
  42. #define KEYMAP_wrapper(...) LAYOUT(__VA_ARGS__)
  43. #define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__)
  44. #define LAYOUT_ortho_4x12_wrapper(...) LAYOUT_ortho_4x12(__VA_ARGS__)
  45. #define ___________________BLANK___________________ _______, _______, _______, _______, _______
  46. #define __________________QWERTYL1_________________ KC_Q, KC_W, KC_E, KC_R, KC_T
  47. #define __________________QWERTYR1_________________ KC_Y, KC_U, KC_I, KC_O, KC_P
  48. #define __________________QWERTYL2_________________ KC_A, KC_S, KC_D, KC_F, KC_G
  49. #define __________________QWERTYR2_________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN
  50. #define __________________QWERTYL3_________________ KC_Z, KC_X, KC_C, KC_V, KC_B
  51. #define __________________QWERTYR3_________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH
  52. #define _________________FUNC_LEFT_________________ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5
  53. #define _________________FUNC_RIGHT________________ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10
  54. #define ________________NUMBER_LEFT________________ KC_1, KC_2, KC_3, KC_4, KC_5
  55. #define ________________NUMBER_RIGHT_______________ KC_6, KC_7, KC_8, KC_9, KC_0
  56. #define _________________LOWER_L1__________________ ________________NUMBER_LEFT________________
  57. #define _________________LOWER_L2__________________ KC_MINS, KC_PLUS, KC_LBRC, KC_RBRC, KC_BSLS
  58. #define _________________LOWER_R1__________________ ________________NUMBER_RIGHT_______________
  59. #define _________________LOWER_R2__________________ KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______
  60. #define _________________RAISE_L1__________________ KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC
  61. #define _________________RAISE_L2__________________ ___________________BLANK___________________
  62. #define _________________RAISE_R1__________________ KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN
  63. #define _________________RAISE_R2__________________ KC_UNDS, KC_EQL, KC_LCBR, KC_RCBR, KC_PIPE