keymap.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #include "lets_split.h"
  2. #include "action_layer.h"
  3. #define BASE 0
  4. enum preonic_keycodes {
  5. KC_IDK = SAFE_RANGE,
  6. PM_RESET
  7. };
  8. // Fillers to make layering more clear
  9. #define _______ KC_TRNS
  10. #define XXXXXXX KC_NO
  11. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  12. [BASE] = KEYMAP(
  13. KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
  14. KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
  15. KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, \
  16. KC_IDK, KC_LCTL, KC_LALT, KC_LGUI, PM_RESET,KC_SPC, KC_SPC, PM_RESET,KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
  17. )
  18. };
  19. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  20. switch (keycode) {
  21. case KC_IDK:
  22. if (record->event.pressed) {
  23. SEND_STRING("IDK. ");
  24. }
  25. return false;
  26. break;
  27. case PM_RESET:
  28. if (record->event.pressed) {
  29. promicro_bootloader_jmp(true);
  30. }
  31. return false;
  32. break;
  33. }
  34. return true;
  35. };