keymap.c 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* Copyright 2021 Alex Kagno
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include "arkag.h"
  17. #include "muse.h"
  18. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  19. [_QWERTY] = LAYOUT_preonic_grid(
  20. KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, XXXXXXX,
  21. KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
  22. KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
  23. KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
  24. KC_LCTL, KC_LGUI, KC_LALT, MEDIA, SYMBOL, KC_SPC, QK_LEAD, ARROW, FUNCT, XXXXXXX, KC_RALT, QK_LEAD),
  25. [_SYMBOL] = LAYOUT_preonic_grid(
  26. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  27. KC_GRV, KC_LPRN, KC_RPRN, KC_PLUS, KC_UNDS, KC_CIRC, KC_AMPR, KC_7, KC_8, KC_9, _______, _______,
  28. KC_LCBR, KC_LBRC, KC_RBRC, KC_EQL, KC_MINS, KC_ASTR, KC_PIPE, KC_4, KC_5, KC_6, _______, KC_NUM,
  29. KC_RCBR, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_PDOT, KC_1, KC_2, KC_3, KC_BSLS, KC_PENT,
  30. M_DASH, KC_TILD, _______, KEEB, _______, _______, _______, KC_0, KC_PSLS, KC_PMNS, KC_PPLS, KC_PAST),
  31. [_MEDIA] = LAYOUT_preonic_grid(
  32. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  33. _______, _______, _______, KC_VOLU, _______, _______, _______, _______, _______, _______, _______, _______,
  34. _______, _______, KC_MPRV, KC_VOLD, KC_MNXT, _______, _______, _______, _______, _______, _______, _______,
  35. KC_MPLY, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  36. KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
  37. [_ARROW] = LAYOUT_preonic_grid(
  38. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  39. _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______,
  40. _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______,
  41. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  42. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
  43. [_FUNCT] = LAYOUT_preonic_grid(
  44. KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
  45. _______, _______, _______, KC_END, _______, _______, _______, _______, _______, _______, _______, _______,
  46. _______, _______, _______, _______, _______, _______, KC_HOME, _______, _______, _______, _______, _______,
  47. M_SFTY, _______, _______, KC_CALC, _______, _______, _______, _______, _______, _______, _______, KC_CAPS,
  48. _______, _______, _______, _______, _______, _______, M_AEST, _______, _______, _______, _______, M_OS ),
  49. [_KEEB] = LAYOUT_preonic_grid(
  50. CK_TOGG, AU_TOG, MU_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  51. M_USSR, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  52. _______, BL_TOGG, BL_STEP, BL_INC, BL_DEC, BL_BRTG, _______, _______, _______, _______, _______, _______,
  53. RGB_M_P, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, _______, _______, _______,
  54. QK_BOOT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
  55. };
  56. #ifdef AUDIO_ENABLE
  57. bool music_mask_user(uint16_t keycode) {
  58. switch (keycode) {
  59. case MU_TOG:
  60. case SYMBOL:
  61. case KEEB:
  62. return false;
  63. default:
  64. return true;
  65. }
  66. }
  67. #endif