qmk_firmware

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

keymap.c (1721B)


      1 /* Copyright 2021 keyquest
      2 This program is free software: you can redistribute it and/or modify
      3 it under the terms of the GNU General Public License as published by
      4 the Free Software Foundation, either version 2 of the License, or
      5 (at your option) any later version.
      6 This program is distributed in the hope that it will be useful,
      7 but WITHOUT ANY WARRANTY; without even the implied warranty of
      8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      9 GNU General Public License for more details.
     10 You should have received a copy of the GNU General Public License
     11 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     12 */
     13 
     14 #include QMK_KEYBOARD_H
     15 
     16 /* what each layer does */
     17 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     18     /*
     19      *    M = Macro
     20      * ┌────┬────┬────┐
     21      * │ M1 │ M2 │ M3 │
     22      * ├────┼────┼────┤
     23      * │ M4 │ M5 │ M6 │
     24      * ├────┼────┼────┤
     25      * │ M7 │ M8 │ M9 │
     26      * └────┴────┴────┘
     27      */
     28     [0] = LAYOUT_ortho_3x3(
     29         KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK,
     30         C(KC_C), C(KC_V), G(KC_V),
     31         KC_AUDIO_VOL_UP, KC_AUDIO_VOL_DOWN, MO(1)
     32     ),
     33 
     34     [1] = LAYOUT_ortho_3x3(
     35         _______, _______, _______,
     36         _______, _______, _______,
     37         _______, MO(2), _______
     38     ),
     39 
     40     [2] = LAYOUT_ortho_3x3(
     41         _______, _______, _______,
     42         _______, _______, _______,
     43         MO(3), _______, _______
     44     ),
     45 
     46     [3] = LAYOUT_ortho_3x3(
     47         UG_TOGG, RGB_M_P, RGB_M_B,
     48         RGB_M_R, RGB_M_SW, RGB_M_G,
     49         _______, _______, _______
     50     )
     51 };