qmk_firmware

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

keymap.c (1201B)


      1 // Below layout is based upon /u/That-Canadian's planck layout
      2 #include QMK_KEYBOARD_H
      3 
      4 
      5 // Each layer gets a name for readability, which is then used in the keymap matrix below.
      6 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
      7 // Layer names don't all need to be of the same length, obviously, and you can also skip them
      8 // entirely and just use numbers.
      9 enum layer_names {
     10     _QWERTY,
     11     _FUNC
     12 };
     13 
     14 // Defines for task manager and such
     15 #define CALTDEL LCTL(LALT(KC_DEL))
     16 #define TSKMGR LCTL(LSFT(KC_ESC))
     17 
     18 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     19 
     20 /* Qwerty
     21  * ,-------------.
     22  * |   1  |  2   |
     23  * |------+------|
     24  * |   3  |  4   |
     25  * |------+------|
     26  * |   5  |  6   |
     27  * |------+------|
     28  * | FUNC |  8   |
     29  * `-------------'
     30  */
     31 [_QWERTY] = LAYOUT(
     32     KC_1,      KC_2,
     33     KC_3,      KC_4,
     34     KC_5,      KC_6,
     35     MO(_FUNC), KC_8
     36 ),
     37 
     38 /* Function
     39  * ,-------------.
     40  * |   Q  |CALDEL|
     41  * |------+------|
     42  * |   A  |TSKMGR|
     43  * |------+------|
     44  * |   Z  |  X   |
     45  * |------+------|
     46  * |      |  C   |
     47  * `-------------'
     48  */
     49 [_FUNC] = LAYOUT(
     50     KC_Q,    CALTDEL,
     51     KC_A,    TSKMGR,
     52     KC_Z,    KC_X,
     53     _______, KC_C
     54 )
     55 
     56 };