logo

qmk_firmware

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

keymap.c (5163B)


  1. // Copyright Kumao Kobo <kumaokobo@gmail.com>
  2. // SPDX-License-Identifier: GPL-2.0+
  3. #include QMK_KEYBOARD_H
  4. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  5. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  6. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  7. // entirely and just use numbers.
  8. #define _QWERTY 0
  9. #define _SYMB 1
  10. #define _LIGHT 2
  11. // Shortcut to make keymap more readable
  12. #define SYM_L MO(_SYMB)
  13. #define KC_ALEN LALT_T(KC_ENT)
  14. #define ES_LIGH LT(_LIGHT, KC_ESC)
  15. #define CT_COPY LCTL(KC_C)
  16. #define CT_PASTE LCTL(KC_V)
  17. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  18. [_QWERTY] = LAYOUT(
  19. //┌────────┬────────┬────────┬────────┬────────┬────────┐
  20. ES_LIGH ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 ,
  21. //└────────┼────────┼────────┼────────┼────────┼────────┤
  22. KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,
  23. //┌────────┼────────┼────────┼────────┼────────┼────────┼────────┐
  24. CT_COPY ,CT_PASTE,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,
  25. //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐
  26. KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,
  27. //├────────┼────────┘ └────────┴────────┼────────┼────────┐
  28. KC_LCTL ,SYM_L ,KC_SPC
  29. //└────────┘ └────────┴────────┘
  30. ),
  31. [_SYMB] = LAYOUT(
  32. //┌────────┬────────┬────────┬────────┬────────┬────────┐
  33. _______ ,KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,
  34. //└────────┼────────┼────────┼────────┼────────┼────────┤
  35. KC_GRV ,KC_UP ,KC_PIPE ,KC_LCBR ,KC_RCBR ,
  36. //┌────────┼────────┼────────┼────────┼────────┼────────┼────────┐
  37. _______ ,_______ ,KC_LEFT ,KC_DOWN ,KC_RIGHT,KC_LBRC ,KC_RBRC ,
  38. //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐
  39. _______ ,KC_BSPC ,KC_DEL ,KC_LPRN ,KC_RPRN ,
  40. //├────────┼────────┘ └────────┴────────┼────────┼────────┐
  41. _______ ,_______ ,_______
  42. //└────────┘ └────────┴────────┘
  43. ),
  44. [_LIGHT] = LAYOUT(
  45. //┌────────┬────────┬────────┬────────┬────────┬────────┐
  46. _______ ,UG_HUEU ,UG_HUED ,UG_SATU ,UG_SATD ,UG_VALU ,
  47. //└────────┼────────┼────────┼────────┼────────┼────────┤
  48. RGB_M_P ,RGB_M_SW,RGB_M_X ,RGB_M_B ,UG_VALD ,
  49. //┌────────┼────────┼────────┼────────┼────────┼────────┼────────┐
  50. _______ ,_______ ,RGB_M_SN,RGB_M_G ,RGB_M_R ,RGB_M_K ,RGB_M_T ,
  51. //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐
  52. _______ ,RGB_M_T ,XXXXXXX ,UG_VALU ,UG_VALD ,
  53. //├────────┼────────┘ └────────┴────────┼────────┼────────┐
  54. _______ ,UG_NEXT ,UG_TOGG
  55. //└────────┘ └────────┴────────┘
  56. )
  57. };
  58. // Runs just one time when the keyboard initializes.
  59. #ifdef RGBLIGHT_ENABLE
  60. void eeconfig_init_user(void) {
  61. rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL);
  62. };
  63. #endif