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.

81 lines
2.2 KiB

  1. /*
  2. * Copyright 2020 Drashna Jaelre <@drashna>
  3. * Copyright 2021 Tyler Thrailkill <@snowe/@snowe2010>
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #pragma once
  19. #define GUI_ESC GUI_T(KC_ESC)
  20. #define CTL_ESC CTL_T(KC_ESC)
  21. #define SH_BKSP SFT_T(KC_BSPC)
  22. #define SP_RAIS LT(_UPPER, KC_SPC)
  23. #define LOWER MO(_LOWER)
  24. #define RAISE MO(_UPPER)
  25. #define ADJUST MO(_ADJUST)
  26. #define TG_MODS TG(_MODS)
  27. //#define TG_GAME TG(_GAMEPAD)
  28. //#define OS_LWR OSL(_LOWER)
  29. //#define OS_RSE OSL(_UPPER)
  30. //#define KC_SEC1 KC_SECRET_1
  31. //#define KC_SEC2 KC_SECRET_2
  32. //#define KC_SEC3 KC_SECRET_3
  33. //#define KC_SEC4 KC_SECRET_4
  34. //#define KC_SEC5 KC_SECRET_5
  35. #define QWERTY KC_QWERTY
  36. #define DVORAK KC_DVORAK
  37. #define COLEMAK KC_COLEMAK
  38. #define WORKMAN KC_WORKMAN
  39. #define KC_RESET RESET
  40. #define KC_RST KC_RESET
  41. #ifdef SWAP_HANDS_ENABLE
  42. # define KC_C1R3 SH_TT
  43. #else // SWAP_HANDS_ENABLE
  44. # define KC_C1R3 KC_BSPC
  45. #endif // SWAP_HANDS_ENABLE
  46. #define BK_LWER LT(_LOWER, KC_BSPC)
  47. #define SP_LWER LT(_LOWER, KC_SPC)
  48. #define DL_RAIS LT(_UPPER, KC_DEL)
  49. #define ET_RAIS LT(_UPPER, KC_ENTER)
  50. #define SFT_ENT SFT_T(KC_ENTER)
  51. #define SP_RAIS LT(_UPPER, KC_SPC)
  52. /* OSM keycodes, to keep things clean and easy to change */
  53. #define KC_MLSF OSM(MOD_LSFT)
  54. #define KC_MRSF OSM(MOD_RSFT)
  55. #define OS_LGUI OSM(MOD_LGUI)
  56. #define OS_RGUI OSM(MOD_RGUI)
  57. #define OS_LSFT OSM(MOD_LSFT)
  58. #define OS_RSFT OSM(MOD_RSFT)
  59. #define OS_LCTL OSM(MOD_LCTL)
  60. #define OS_RCTL OSM(MOD_RCTL)
  61. #define OS_LALT OSM(MOD_LALT)
  62. #define OS_RALT OSM(MOD_RALT)
  63. #define OS_MEH OSM(MOD_MEH)
  64. #define OS_HYPR OSM(MOD_HYPR)
  65. #define ALT_APP ALT_T(KC_APP)
  66. #define MG_NKRO MAGIC_TOGGLE_NKRO
  67. #define UC_IRNY UC(0x2E2E)
  68. #define UC_CLUE UC(0x203D)