keymap.c 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. Copyright 2022 Cole Smith <cole@boadsource.xyz>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #include QMK_KEYBOARD_H
  15. enum layers {
  16. _QWERTY,
  17. _RAISE,
  18. _LOWER
  19. };
  20. #define KC_CTSC RCTL_T(KC_SCLN)
  21. #define LOWER_SPC LT(_LOWER, KC_SPC)
  22. #define RASE_BACK LT(_RAISE, KC_BSPC)
  23. #define SHFT_Z MT(MOD_LSFT, KC_Z)
  24. #define SHIFT_SLASH MT(MOD_RSFT,KC_SLSH)
  25. #define RASE_ENT LT(_RAISE, KC_ENT)
  26. #define CTRL_A MT(MOD_LCTL,KC_A)
  27. #define PREVWINDOW MT(MOD_LCTL, KC_LEFT)
  28. #define NEXTWINDOW MT(MOD_LCTL, KC_RGHT)
  29. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  30. [_QWERTY] = LAYOUT_split_3x5_3(
  31. KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
  32. CTRL_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_CTSC,
  33. SHFT_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SHIFT_SLASH,
  34. MO(_LOWER),KC_LGUI, RASE_ENT, RASE_BACK, LOWER_SPC, KC_TAB
  35. ),
  36. [_RAISE] = LAYOUT_split_3x5_3(
  37. KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
  38. KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT,
  39. KC_LSFT, KC_GRV, PREVWINDOW, NEXTWINDOW, XXXXXXX, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
  40. _______, KC_LGUI, KC_ENT, KC_BSPC, KC_SPC, _______
  41. ),
  42. [_LOWER] = LAYOUT_split_3x5_3(
  43. KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN,
  44. KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, RGB_TOG, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_DQT,
  45. KC_ESC, KC_TILD, PREVWINDOW, NEXTWINDOW, RGB_MODE_FORWARD, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
  46. _______, KC_LGUI, KC_ENT, KC_BSPC, KC_SPC, _______
  47. )
  48. };