keymap.c (2627B)
1 /* Copyright 2022 Leo Deng (@myst729) 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 QMK_KEYBOARD_H 17 18 #define LCTL_Z LCTL_T(KC_Z) 19 #define LGUI_X LGUI_T(KC_X) 20 #define LALT_C LALT_T(KC_C) 21 #define FN1_V LT(1, KC_V) 22 #define FN2_B LT(2, KC_B) 23 #define FN3_N LT(3, KC_N) 24 #define FN4_M LT(4, KC_M) 25 26 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 27 28 [0] = LAYOUT_ortho_3x10( 29 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, 30 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_RSFT, 31 LCTL_Z, LGUI_X, LALT_C, FN1_V, FN2_B, FN3_N, FN4_M, KC_SPC, KC_BSPC, KC_ENT), 32 33 [1] = LAYOUT_ortho_3x10( 34 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, 35 KC_TAB, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_SCLN, KC_QUOT, _______, 36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), 37 38 [2] = LAYOUT_ortho_3x10( 39 KC_ESC, KC_GRV, _______, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______, KC_UP, _______, 40 KC_CAPS, _______, KC_COMM, KC_DOT, KC_SLSH, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, 41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), 42 43 [3] = LAYOUT_ortho_3x10( 44 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, KC_INS, KC_HOME, KC_PGUP, 45 KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_DEL, KC_END, KC_PGDN, 46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), 47 48 [4] = LAYOUT_ortho_3x10( 49 QK_BOOT, KC_BRID, KC_BRIU, _______, RM_TOGG, RM_HUEU, RM_SATU, RM_VALU, RM_SPDU, RM_NEXT, 50 KC_MUTE, KC_VOLD, KC_VOLU, _______, RGB_M_B, RM_HUED, RM_SATD, RM_VALD, RM_SPDD, RM_PREV, 51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______) 52 };