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.

68 lines
2.2 KiB

  1. # 60_ansi
  2. This is the standard 60% ANSI keyboard layout.
  3. ## Requirements
  4. ### 1. Layout defined
  5. A keyboard's `.h` file needs to have `LAYOUT_60_ansi` defined
  6. ```c
  7. #define LAYOUT_60_ansi( \
  8. K36, K37, K46, K47, K56, K57, K66, K67, K76, K77, K06, K07, K17, K27, \
  9. K34, K35, K44, K45, K54, K55, K64, K65, K75, K05, K15, K16, K25, K24, \
  10. K32, K33, K43, K52, K53, K63, K73, K74, K03, K04, K13, K14, K23, \
  11. K31, K42, K51, K61, K62, K71, K72, K01, K02, K11, K12, K21, \
  12. K30, K40, K50, K60, K70, K00, K10, K20 \
  13. ) { \
  14. { K00, K01, K02, K03, K04, K05, K06, K07 }, \
  15. { K10, K11, K12, K13, K14, K15, K16, K17 }, \
  16. { K20, K21, KC_NO, K23, K24, K25, KC_NO, K27 }, \
  17. { K30, K31, K32, K33, K34, K35, K36, K37 }, \
  18. { K40, KC_NO, K42, K43, K44, K45, K46, K47 }, \
  19. { K50, K51, K52, K53, K54, K55, K56, K57 }, \
  20. { K60, K61, K62, K63, K64, K65, K66, K67 }, \
  21. { K70, K71, K72, K73, K74, K75, K76, K77 } \
  22. }
  23. )
  24. ```
  25. This layout needs to match the layout defined in
  26. qmk_firmware/layouts/community/layout.json
  27. ### 2. Configuring rules.mk
  28. `rules.mk` needs to have the following line:
  29. LAYOUTS = 60_ansi
  30. ### 3. Defining a keymap
  31. A keymap must be defined at
  32. qmk_firmware/layouts/community/60_ansi/yourfoldername/keymap.c
  33. This keymap must have a `LAYOUT_60_ansi` layout defined.
  34. ```c
  35. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  36. [BASE] = LAYOUT_60_ansi(
  37. KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, \
  38. KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLASH, \
  39. KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \
  40. KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, \
  41. KC_LCTL, KC_LALT, KC_LGUI, KC_SPACE, MO(1), KC_RALT, KC_RGUI, KC_RCTL),
  42. };
  43. ```
  44. ## Usage
  45. To make generate a hex file, type
  46. make yourkeyboard:yourfoldername
  47. This hex file will contain a keymap with layout `LAYOUT_60_ansi` derived from
  48. qmk_firmware/layouts/community/60_ansi/yourfoldername/keymap.c