qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

keymap.c (10491B)


      1 /*
      2  * 60 ANSI Arrow Split Backspace & 7U Space Keymap
      3  * with RGB Lighting/LED/Underglow as Caps Lock, Num Lock, Scroll Lock, and Layer Indicator.
      4  *
      5  * Copyright (C) 2020 Sendy YK <https://mr.sendyyk.com>
      6  *
      7  * This program is free software: you can redistribute it and/or modify
      8  * it under the terms of the GNU General Public License as published by
      9  * the Free Software Foundation, either version 3 of the License, or
     10  * (at your option) any later version.
     11  *
     12  * This program is distributed in the hope that it will be useful,
     13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     15  * GNU General Public License for more details.
     16  *
     17  * You should have received a copy of the GNU General Public License
     18  * along with this program. If not, see <https://www.gnu.org/licenses/>.
     19  */
     20 
     21 #include QMK_KEYBOARD_H
     22 
     23 
     24 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     25     /*
     26      * [_BASE] Base Layer
     27      * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
     28      * │Esc│1  │2  │3  │4  │5  │6  │7  │8  │9  │0  │-  │+  │\  │Del│
     29      * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
     30      * │Tab  │Q  │W  │E  │R  │T  │Y  │U  │I  │O  │P  │[  │]  │Bspc │
     31      * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
     32      * │Caps  │A  │S  │D  │F  │G  │H  │J  │K  │L  │;  │'  │Return  │
     33      * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┬───┤
     34      * │Shft│No │Z  │X  │C  │V  │B  │N  │M  │,  │.  │Shift │↑  │/  │
     35      * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬───┼───┼───┤
     36      * │Ctrl│OS  │Alt │Space                   │Fn │Alt│←  │↓  │→  │
     37      * └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘
     38      */
     39     [0] = LAYOUT(
     40         QK_GESC, KC_1,    KC_2, KC_3,    KC_4, KC_5, KC_6,   KC_7, KC_8, KC_9,    KC_0,    KC_MINS, KC_EQL,  KC_BSLS, KC_DEL,
     41         KC_TAB,           KC_Q, KC_W,    KC_E, KC_R, KC_T,   KC_Y, KC_U, KC_I,    KC_O,    KC_P,    KC_LBRC, KC_RBRC, KC_BSPC,
     42         KC_CAPS,          KC_A, KC_S,    KC_D, KC_F, KC_G,   KC_H, KC_J, KC_K,    KC_L,    KC_SCLN, KC_QUOT, KC_ENT,
     43         KC_LSFT, KC_NO,   KC_Z, KC_X,    KC_C, KC_V, KC_B,   KC_N, KC_M, KC_COMM, KC_DOT,           KC_RSFT, KC_UP,   KC_SLSH,
     44         KC_LCTL, KC_LGUI,       KC_LALT,             KC_SPC,                      MO(1), KC_LALT, KC_LEFT, KC_DOWN, KC_RGHT
     45     ),
     46     /*
     47      * [_FN] Fn Layer
     48      * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
     49      * │`  │F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│   │Ejc│
     50      * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
     51      * │     │   │   │End│RGB│   │   │   │Ins│   │PSc│   │   │Mute │
     52      * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
     53      * │      │   │SLc│   │   │   │Hm │   │   │   │   │   │Pause   │
     54      * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┬───┤
     55      * │Vol+│   │   │   │Cal│   │BLT│NLc│Ml │   │   │      │PgU│MSt│
     56      * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬───┼───┼───┤
     57      * │Vol-│Rwd │FFd │Play                    │   │   │Prv│PgD│Nxt│
     58      * └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘
     59      */
     60     [1] = LAYOUT(
     61         KC_GRV,  KC_F1,   KC_F2,   KC_F3,   KC_F4,   KC_F5,   KC_F6,   KC_F7,   KC_F8,   KC_F9,   KC_F10,  KC_F11,  KC_F12,     _______, KC_EJCT,
     62         _______,          _______, _______, KC_END,  UG_TOGG, _______, _______, _______, KC_INS,  _______, KC_PSCR, _______,    _______, KC_MUTE,
     63         _______,          _______, KC_SCRL, _______, _______, _______, KC_HOME, _______, _______, _______, _______, _______,    KC_PAUS,
     64         KC_VOLU, _______, _______, _______, KC_CALC, _______, BL_TOGG, KC_NUM,  KC_MAIL, _______, _______,          MO(2), KC_PGUP, KC_MSTP,
     65         KC_VOLD, KC_MRWD,          KC_MFFD,                   KC_MPLY,                            _______, _______, KC_MPRV,    KC_PGDN, KC_MNXT
     66     ),
     67     /*
     68      * [_RESET] Reset Layer
     69      * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
     70      * │   │   │   │   │   │   │   │   │   │   │   │   │   │   │   │
     71      * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
     72      * │     │   │   │   │Rst│   │   │   │   │   │   │   │   │     │
     73      * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
     74      * │      │   │   │   │   │   │   │   │   │   │   │   │        │
     75      * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┬───┤
     76      * │    │   │   │   │   │   │   │   │   │   │   │      │   │   │
     77      * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬───┼───┼───┤
     78      * │    │    │    │                        │   │   │   │   │   │
     79      * └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘
     80      */
     81     [2] = LAYOUT(
     82         _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
     83         _______,          _______, _______, _______, QK_BOOT, _______, _______, _______, _______, _______, _______, _______, _______, _______,
     84         _______,          _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
     85         _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,          _______, _______, _______,
     86         _______, _______,          _______,                   _______,                            _______, _______, _______, _______, _______
     87     ),
     88     /*
     89      * [_BLANK] Blank Layer
     90      * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
     91      * │   │   │   │   │   │   │   │   │   │   │   │   │   │   │   │
     92      * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
     93      * │     │   │   │   │   │   │   │   │   │   │   │   │   │     │
     94      * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
     95      * │      │   │   │   │   │   │   │   │   │   │   │   │        │
     96      * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┬───┤
     97      * │        │   │   │   │   │   │   │   │   │   │      │   │   │
     98      * ├─────┬──┴┬──┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴──┬───┼───┼───┤
     99      * │     │   │     │                           │   │   │   │   │
    100      * └─────┴───┴─────┴───────────────────────────┴───┴───┴───┴───┘
    101      */
    102     [3] = LAYOUT(
    103         _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    104         _______,          _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    105         _______,          _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    106         _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,          _______, _______, _______,
    107         _______, _______,          _______,                   _______,                            _______, _______, _______, _______, _______
    108     ),
    109 };
    110 
    111