logo

qmk_firmware

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

keymap.c (2099B)


  1. #include QMK_KEYBOARD_H
  2. #ifdef RGBLIGHT_ENABLE
  3. //Following line allows macro to read current RGB settings
  4. extern rgblight_config_t rgblight_config;
  5. #endif
  6. extern uint8_t is_master;
  7. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  8. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  9. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  10. // entirely and just use numbers.
  11. enum layer_number {
  12. _BASE,
  13. _MOUSE,
  14. _BROWSER,
  15. _ADJUST,
  16. };
  17. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  18. [_BASE] = LAYOUT(
  19. //|-------------------------------------------|
  20. TG(_MOUSE),
  21. //|---------------+---------------+-----------|
  22. LT(_ADJUST, KC_BSPC), KC_UP,TG(_BROWSER),
  23. //|---------------+---------------+-----------|
  24. KC_LEFT, KC_DOWN, KC_RIGHT
  25. //|-------------------------------------------|
  26. ),
  27. [_MOUSE] = LAYOUT(
  28. //|-------------------------------------------|
  29. TG(_MOUSE),
  30. //|---------------+---------------+-----------|
  31. KC_BTN1, KC_MS_U, KC_BTN2,
  32. //|---------------+---------------+-----------|
  33. KC_MS_L, KC_MS_D, KC_MS_R
  34. //|-------------------------------------------|
  35. ),
  36. [_BROWSER] = LAYOUT(
  37. //|-------------------------------------------|
  38. LCTL(KC_W),
  39. //|---------------+---------------+-----------|
  40. LCTL(LSFT(KC_T)), KC_WH_U,TG(_BROWSER),
  41. //|---------------+---------------+-----------|
  42. LCTL(LSFT(KC_TAB)), KC_WH_D,LCTL(KC_TAB)
  43. //|-------------------------------------------|
  44. ),
  45. [_ADJUST] = LAYOUT( /* Base */
  46. //|-------------------------------------------|
  47. UG_VALD,
  48. //|---------------+---------------+-----------|
  49. MO(_ADJUST), UG_SATD, UG_VALU,
  50. //|---------------+---------------+-----------|
  51. UG_NEXT, UG_TOGG, UG_SATU
  52. //|-------------------------------------------|
  53. )
  54. };