sigul.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #include "quantum.h"
  3. enum userspace_layers {
  4. _QWERTY,
  5. _LOWER, //symbols
  6. _RAISE, //numbers
  7. _ADJUST, //system
  8. _NUMPAD,
  9. _FN,
  10. _MOUSE
  11. };
  12. enum userspace_custom_keycodes {
  13. QWERTY = SAFE_RANGE,
  14. // custom keycodes for an Italian ANSI layout with accented vowels
  15. IT_CMLS, // IT_COMM and IT_LABK when combined with shift
  16. IT_DTMR, // IT_DOT and IT_RABK when combined with shift
  17. IT_SLQS, // IT_SLSH and IT_QUES when combined with shift
  18. IT_APDQ, // IT_APO and IT_DQUO when combined with shift
  19. IT_SCCL, // IT_SMCL and IT_COLN when combined with shift
  20. SECRET0,
  21. SECRET1,
  22. SECRET2,
  23. SECRET3,
  24. SECRET4,
  25. SECRET5,
  26. NEW_SAFE_RANGE // start new keyboard-level declarations with NEW_SAFE_RANGE
  27. };
  28. // Defining Layer Keycodes
  29. #define QWERTY DF(_QWERTY)
  30. // For LOWER and RAISE I use TT instead of MO to be able to lock those layer tapping three times the key (TAPPING_TOGGLE 3 has been added in sigul.h)
  31. #define LOWER TT(_LOWER)
  32. #define RAISE TT(_RAISE)
  33. #define NUMPAD TG(_NUMPAD)
  34. #define FN MO(_FN)
  35. #define TABFN LT(_FN, KC_TAB)
  36. #define ESCFN LT(_FN, KC_ESC)
  37. #define MS_B LT(_MOUSE, IT_B)