logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

keymap.c (1331B)


  1. #include QMK_KEYBOARD_H
  2. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  3. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  4. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  5. // entirely and just use numbers.
  6. #define _DEFAULT 0
  7. #define _FN_1 1
  8. #define _FN_2 2
  9. // Defines for task manager and such
  10. #define CALTDEL LCTL(LALT(KC_DEL))
  11. #define TSKMGR LCTL(LSFT(KC_ESC))
  12. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  13. /* Default Layer
  14. * ,-----------------------------------------------.
  15. * | FN_2 | 2 |TSKMGR |CALTDEL| ESC | FN_1 |
  16. * `-----------------------------------------------'
  17. */
  18. [_DEFAULT] = LAYOUT(
  19. MO(_FN_2), KC_2, TSKMGR, CALTDEL, KC_ESC, MO(_FN_1)
  20. ),
  21. /* FN 1 Layer
  22. * ,-----------------------------------------------.
  23. * |UG_TOGG|UG_HUED|UG_HUEU|UG_SATD|UG_SATU| FN_1 |
  24. * `-----------------------------------------------'
  25. */
  26. [_FN_1] = LAYOUT(
  27. UG_TOGG, UG_HUED, UG_HUEU, UG_SATD, UG_SATU, _______
  28. ),
  29. /* FN 2 Layer
  30. * ,-----------------------------------------------.
  31. * | FN_2 |UG_VALD|UG_VALU|UG_NEXT|TSKMGR | QK_BOOT |
  32. * `-----------------------------------------------'
  33. */
  34. [_FN_2] = LAYOUT(
  35. _______, UG_VALD, UG_VALU, UG_NEXT, TSKMGR, QK_BOOT
  36. )
  37. };