ishtob.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #ifndef USERSPACE
  2. #define USERSPACE
  3. #include "quantum.h"
  4. enum userspace_keycodes {
  5. QWERTY = SAFE_RANGE,
  6. COLEMAK,
  7. DVORAK,
  8. PLOVER,
  9. LOWER,
  10. RAISE,
  11. BACKLIT,
  12. EXT_PLV,
  13. DFU,
  14. P_CITRIX, //these macro exsists in macros_private.c, which is excluded from git
  15. P_MPASS,
  16. P_META,
  17. O_DAYRN,
  18. O_RTQ6H,
  19. O_3DRN,
  20. O_AUTODC,
  21. M_EMAIL,
  22. M_EMAIL2
  23. };
  24. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  25. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  26. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  27. // entirely and just use numbers.
  28. #define _QWERTY 0
  29. #define _COLEMAK 1
  30. #define _DVORAK 2
  31. #define _LOWER 3
  32. #define _RAISE 4
  33. #define _PLOVER 5
  34. #define _FNLAYER 6
  35. #define _NUMLAY 7
  36. #define _MOUSECURSOR 8
  37. #define _ADJUST 16
  38. #define LOWER MO(_LOWER)
  39. #define RAISE MO(_RAISE)
  40. // Fillers to make layering more clear
  41. #define _______ KC_TRNS
  42. #define XXXXXXX KC_NO
  43. // Custom macros
  44. #define CTL_ESC CTL_T(KC_ESC) // Tap for Esc, hold for Ctrl
  45. #define CTL_TTAB CTL_T(KC_TAB) // Tap for Esc, hold for Ctrl
  46. #define CTL_ENT CTL_T(KC_ENT) // Tap for Enter, hold for Ctrl
  47. #define SFT_ENT SFT_T(KC_ENT) // Tap for Enter, hold for Shift
  48. // Requires KC_TRNS/_______ for the trigger key in the destination layer
  49. #define LT_FN(kc) LT(_FNLAYER, kc) // L-ayer T-ap Function Layer
  50. #define LT_MC(kc) LT(_MOUSECURSOR, kc) // L-ayer T-ap M-ouse C-ursor
  51. #define LT_RAI(kc) LT(_RAISE, kc) // L-ayer T-ap to Raise
  52. #define TG_NUMLAY TG(_NUMLAY) //Toggle for layer _NUMLAY
  53. /*
  54. enum userspace_layers {
  55. _QWERTY = 0,
  56. _COLEMAK,
  57. _DVORAK,
  58. _LOWER,
  59. _RAISE,
  60. _PLOVER,
  61. _FNLAYER,
  62. _NUMLAY,
  63. _MOUSECURSOR,
  64. _ADJUST
  65. };
  66. */
  67. #endif // !USERSPACE