keymap.c 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #include QMK_KEYBOARD_H
  2. enum layers {
  3. _QWERTY,
  4. _HYPER,
  5. };
  6. #define KC_ KC_TRNS
  7. #define KC_ESCC MT(MOD_LCTL, KC_ESC)
  8. #define KC_ENTS MT(MOD_LSFT, KC_ENT)
  9. #define KC_HYPE MO(_HYPER)
  10. #define KC_RST RESET
  11. // Brightness
  12. #define KC_BRUP KC_PAUS
  13. #define KC_BRDN KC_SLCK
  14. #define KC_BLTG BL_TOGG
  15. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  16. [_QWERTY] = LAYOUT_kc(
  17. //,----+----+----+----+----+----. ,----+----+----+----+----+----.
  18. GRV , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS,
  19. //|----+----+----+----+----+----| |----+----+----+----+----+----|
  20. TAB , Q , W , E , R , T , Y , U , I , O , P ,EQL,
  21. //|----+----+----+----+----+----| |----+----+----+----+----+----|
  22. ESCC, A , S , D , F , G , H , J , K , L ,SCLN,QUOT,
  23. //|----+----+----+----+----+----+----. ,----|----+----+----+----+----+----|
  24. LSFT, Z , X , C , V , B ,SPC, BSPC, N , M ,COMM,DOT ,SLSH,ENTS,
  25. //`----+----+----+--+-+----+----+----/ \----+----+----+----+----+----+----'
  26. LALT,LGUI,SPC, BSPC,HYPE,ENT
  27. // `----+----+----' `+---+----+----'
  28. ), // |
  29. // |
  30. [_HYPER] = LAYOUT_kc( // V
  31. //,----+----+----+----+----+----. ,----+----+----+----+----+----.
  32. RST , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 ,LBRC,RBRC, ,
  33. //|----+----+----+----+----+----| |----+----+----+----+----+----|
  34. , , ,PGUP, ,BRUP, , , UP ,LCBR,RCBR,BSLS,
  35. //|----+----+----+----+----+----| |----+----+----+----+----+----|
  36. , ,HOME,PGDN,END ,BRDN, MINS,LEFT,DOWN,RGHT, ,PIPE,
  37. //|----+----+----+----+----+----+----. ,----|----+----+----+----+----+----|
  38. , , , , , ,BLTG, VOLU, , , , , , ,
  39. //`----+----+----+--+-+----+----+----/ \----+----+----+----+----+----+----'
  40. , , , VOLD, ,MUTE
  41. // `----+----+----' `----+----+----'
  42. ),
  43. };