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_LESS when combined with shift
  16. IT_DTMR, // IT_DOT and IT_MORE when combined with shift
  17. IT_SLQS, // IT_SLSH and IT_QST when combined with shift
  18. IT_APDQ, // IT_APO and IT_DQOT 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. NEW_SAFE_RANGE // start new keyboard-level declarations with NEW_SAFE_RANGE
  26. };
  27. // Defining Layer Keycodes
  28. #define QWERTY DF(_QWERTY)
  29. // 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)
  30. #define LOWER TT(_LOWER)
  31. #define RAISE TT(_RAISE)
  32. #define NUMPAD TG(_NUMPAD)
  33. #define FN MO(_FN)
  34. #define MOUSE TT(_MOUSE)
  35. #define TABFN LT(_FN, KC_TAB)
  36. #define ESCFN LT(_FN, KC_ESC)
  37. #define MS_B LT(_MOUSE, IT_B)