custom_keycodes.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // These definitions are for convenience.
  2. // It is not wise to put sensitive information here such as passwords
  3. // as anyone with access to your keyboard will be able to use them!
  4. // magnet keycodes
  5. #define M_LEFT LCA(KC_LEFT)
  6. #define M_TOP LCA(KC_UP)
  7. #define M_BOTT LCA(KC_DOWN)
  8. #define M_RGHT LCA(KC_RGHT)
  9. #define M_TOPL LCA(KC_U)
  10. #define M_TOPR LCA(KC_I)
  11. #define M_BOTL LCA(KC_J)
  12. #define M_BOTR LCA(KC_K)
  13. #define M_L13 LCA(KC_D)
  14. #define M_L23 LCA(KC_E)
  15. #define M_C13 LCA(KC_F)
  16. #define M_R23 LCA(KC_T)
  17. #define M_R13 LCA(KC_G)
  18. #define M_NEXT LCAG(KC_RGHT)
  19. #define M_PREV LCAG(KC_LEFT)
  20. #define M_MAX LCA(KC_ENT)
  21. #define M_CEN LCA(KC_C)
  22. #define M_REST LCA(KC_BSPC)
  23. // Shortcuts
  24. #define INPUT_L LCAG(KC_SPC)
  25. #define TXT_PLS LGUI(KC_PLUS)
  26. #define TXT_MIN LGUI(KC_MINS)
  27. #define SC_CAPF LGUI(LSFT(KC_3)) // Capture the full screen to file
  28. #define SC_CAPP LGUI(LSFT(KC_4)) // Capture portion of screen to file
  29. // Special Layer keycodes
  30. #define ESC_NUM LT(_NUMBER, KC_ESC)
  31. #define BSP_REG LT(_REGEX, KC_BSPC)
  32. #define DEL_REG LT(_REGEX, KC_DEL)
  33. #define MIN_ARR LT(_ARRANGE, KC_MINS)
  34. #define TAB_SFT LSFT_T(KC_TAB)
  35. #define SPC_SYM LT(_SYMBOL, KC_SPC)
  36. #define ENT_THU LT(_THUMB, KC_ENT)
  37. #define FUN_L MO(_FUNCTION)
  38. // HOMEROW SHIFT
  39. #define T_SFT LSFT_T(KC_T)
  40. #define N_SFT RSFT_T(KC_N)
  41. // Special Characters
  42. #define GBP LALT(KC_3)
  43. #define EURO LALT(S(KC_2))
  44. // Modifier tap holds
  45. #define Q_CTL LCTL_T(KC_Q)
  46. #define W_ALT LALT_T(KC_W)
  47. #define F_GUI LGUI_T(KC_F)
  48. #define U_GUI LGUI_T(KC_U)
  49. #define Y_ALT LALT_T(KC_Y)
  50. #define SCL_CTL LCTL_T(KC_SCLN)