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.

67 lines
1.2 KiB

  1. #pragma once
  2. #include "quantum.h"
  3. #define LOWER MO(_LOWER)
  4. #define RAISE MO(_RAISE)
  5. /* Tap for Tab, hold for Hyper (Super+Ctrl+Shift+Alt) */
  6. #define HPR_TAB ALL_T(KC_TAB)
  7. /* Shift when held, Enter when tapped */
  8. #define SFT_ENT MT(MOD_RSFT, KC_ENT)
  9. /* Activate util layer while holding space */
  10. #define SPC_UTL LT(_UTIL, KC_SPC)
  11. /* Control when held, Escape when tapped */
  12. #define ESC_CTL MT(MOD_LCTL, KC_ESC)
  13. /* Toggle gaming layer */
  14. #define TG_GAME TG(_GAMING)
  15. /*
  16. * Make it easy to navigate back and forward in Chrome.
  17. */
  18. #define GO_BACK LGUI(KC_LBRC)
  19. #define GO_FWD LGUI(KC_RBRC)
  20. /*
  21. * When using a 40% layout, these keycodes make it easy to change tabs in apps
  22. * like Chrome and VSCode.
  23. */
  24. #define GUI_1 LGUI(KC_1)
  25. #define GUI_2 LGUI(KC_2)
  26. #define GUI_3 LGUI(KC_3)
  27. #define GUI_4 LGUI(KC_4)
  28. #define GUI_5 LGUI(KC_5)
  29. #define GUI_6 LGUI(KC_6)
  30. #define GUI_7 LGUI(KC_7)
  31. #define GUI_8 LGUI(KC_8)
  32. #define GUI_9 LGUI(KC_9)
  33. #define GUI_0 LGUI(KC_0)
  34. /*
  35. * Common layers and keycodes that are shared between Planck and Preonic
  36. */
  37. enum ortho_layers {
  38. _QWERTY,
  39. _GAMING,
  40. _UTIL,
  41. _COLEMAK,
  42. _DVORAK,
  43. _LOWER,
  44. _RAISE,
  45. _PLOVER,
  46. _ADJUST
  47. };
  48. enum ortho_keycodes {
  49. QWERTY = SAFE_RANGE,
  50. GAMING,
  51. UTIL,
  52. COLEMAK,
  53. DVORAK,
  54. PLOVER,
  55. BACKLIT,
  56. EXT_PLV
  57. };