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.

64 lines
1.7 KiB

  1. #include QMK_KEYBOARD_H
  2. extern keymap_config_t keymap_config;
  3. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  4. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  5. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  6. // entirely and just use numbers.
  7. #define _DEFAULT 0
  8. #define _FN_1 1
  9. #define _FN_2 2
  10. enum custom_keycodes {
  11. DEFAULT = SAFE_RANGE,
  12. FN_1,
  13. FN_2
  14. };
  15. // Defines for task manager and such
  16. #define CALTDEL LCTL(LALT(KC_DEL))
  17. #define TSKMGR LCTL(LSFT(KC_ESC))
  18. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  19. /* Default Layer
  20. * ,-----------------------------------------------.
  21. * | FN_2 | 2 |TSKMGR |CALTDEL| ESC | FN_1 |
  22. * `-----------------------------------------------'
  23. */
  24. [_DEFAULT] = LAYOUT( \
  25. MO(_FN_2), KC_2, TSKMGR, CALTDEL, KC_ESC, MO(_FN_1)
  26. ),
  27. /* FN 1 Layer
  28. * ,-----------------------------------------------.
  29. * |RGB_TOG|RGB_HUD|RGB_HUI|RGB_SAD|RGB_SAI| FN_1 |
  30. * `-----------------------------------------------'
  31. */
  32. [_FN_1] = LAYOUT( \
  33. RGB_TOG, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, _______
  34. ),
  35. /* FN 2 Layer
  36. * ,-----------------------------------------------.
  37. * | FN_2 |RGB_VAD|RGB_VAI|RGB_MOD|TSKMGR | RESET |
  38. * `-----------------------------------------------'
  39. */
  40. [_FN_2] = LAYOUT( \
  41. _______, RGB_VAD, RGB_VAI, RGB_MOD, TSKMGR, RESET
  42. )
  43. };
  44. void persistant_default_layer_set(uint16_t default_layer) {
  45. eeconfig_update_default_layer(default_layer);
  46. default_layer_set(default_layer);
  47. }
  48. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  49. switch (keycode) {
  50. // NONE
  51. }
  52. return true;
  53. }