qmk_firmware

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

keymap.c (1800B)


      1 #include QMK_KEYBOARD_H
      2 
      3 #ifdef RGBLIGHT_ENABLE
      4 #include "rgblight.h"
      5 #endif
      6 
      7 // Each layer gets a name for readability, which is then used in the keymap matrix below.
      8 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
      9 // Layer names don't all need to be of the same length, obviously, and you can also skip them
     10 // entirely and just use numbers.
     11 #define _BL 0
     12 #define _FL 1
     13 
     14 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     15   /* Keymap _BL: (Base Layer) Default Layer
     16    * ,-------------------.
     17    * | T  | G  | B  |Spac|
     18    * |----|----|----|----|
     19    * | R  | F  | V  | Fn |
     20    * |----|----|----|----|
     21    * | E  | D  | C  | OS |
     22    * |----|----|----|----|
     23    * | W  | S  | X  | Alt|
     24    * |----|----|----|----|
     25    * | Q  | A  | Z  | Ctl|
     26    * |----|----|----|----|
     27    * | Esc| Tab|Shft| Fn2|
     28    * `-------------------'
     29    */
     30 
     31   [_BL] = LAYOUT_ortho_6x4(
     32     KC_T,   KC_G,   KC_B,      KC_SPACE,
     33     KC_R,   KC_F,   KC_V,      MO(1),
     34     KC_E,   KC_D,   KC_C,      KC_LGUI,
     35     KC_W,   KC_S,   KC_X,      KC_LALT,
     36     KC_Q,   KC_A,   KC_Z,      KC_LCTL,
     37     KC_TAB, KC_ESC, KC_LSFT,   MO(1)
     38   ),
     39 
     40   /* Keymap _FL: Function Layer
     41    * ,-------------------.
     42    * | 5  | F5 | F11|Spac|
     43    * |----|----|----|----|
     44    * | 4  | F4 | F10|    |
     45    * |----|----|----|----|
     46    * | 3  | F3 | F9 | OS |
     47    * |----|----|----|----|
     48    * | 2  | F2 | F8 | Alt|
     49    * |----|----|----|----|
     50    * | 1  | F1 | F7 | Ctl|
     51    * |----|----|----|----|
     52    * | `  | Del|Shft|    |
     53    * `-------------------'
     54    */
     55   [_FL] = LAYOUT_ortho_6x4(
     56     KC_5,  KC_F5,  KC_F11,  _______,
     57     KC_4,  KC_F4,  KC_F10,  _______,
     58     KC_3,  KC_F3,  KC_F9,   _______,
     59     KC_2,  KC_F2,  KC_F8,   _______,
     60     KC_1,  KC_F1,  KC_F7,   _______,
     61     KC_GRV,KC_DEL, _______, _______
     62   ),
     63 };