Instantly share code, notes, and snippets.

@taiyoh /keymap.c
Last active Sep 2, 2018

Embed
What would you like to do?
#include QMK_KEYBOARD_H
extern keymap_config_t keymap_config;
#define DVRK 0
#define QWTY 1
#define META 2
#define SYMB 3
// Fillers to make layering more clear
#define _______ KC_TRNS
#define XXXXXXX KC_NO
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* DVRK
* ,------------------------------------------------. ,------------------------------------------------.
* | ESC | Tab | ' | , | . | P | Y | | F | G | C | R | L | / | = |
* |------+------+------+------+------+------+------| |-------------+------+------+------+------+------|
* | LGUI | RCtrl| A | O | E | U | I | | D | H | T | N | S | - | Enter|
* |------+------+------+------+------+------+------| |------|------+------+------+------+------+------|
* | | LSft | ; | Q | J | K | X | | Bksp | B | M | W | V | Z | \ |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | | | | | LAlt | META | Space| | Space| SYMB | | LEFT | DOWN | UP | RIGHT|
* `------------------------------------------------' `------------------------------------------------'
*/
[DVRK] = LAYOUT( \
KC_ESC, KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH, KC_EQL, \
KC_LGUI, KC_RCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS, KC_ENT, \
XXXXXXX, KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_BSPC, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_BSLS, \
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LALT, MO(META), KC_SPC, KC_SPC, MO(SYMB), XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
),
/* QWTY
* ,------------------------------------------------. ,------------------------------------------------.
* | ESC | Tab | Q | W | E | R | T | | Y | U | I | O | P | ' | = |
* |------+------+------+------+------+------+------| |-------------+------+------+------+------+------|
* | LGUI | RCtrl| A | S | D | F | G | | H | J | K | L | ; | - | Enter|
* |------+------+------+------+------+------+------| |------|------+------+------+------+------+------|
* | | LSft | Z | X | C | V | B | | Bksp | N | M | , | . | / | \ |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | | | | | LAlt | META | Space| | Space| SYMB | | LEFT | DOWN | UP | RIGHT|
* `------------------------------------------------' `------------------------------------------------'
*/
[QWTY] = LAYOUT( \
_______, _______, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_QUOT, _______, \
_______, _______, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_MINS, _______, \
_______, _______, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_BSPC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
),
/* META
* ,------------------------------------------------. ,------------------------------------------------.
* | Reset| ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | |
* |------+------+------+------+------+------+------| |-------------+------+------+------+------+------|
* | LGUI | RCtrl| |Muhen | Henk | | | | | | | | | | Enter|
* |------+------+------+------+------+------+------| |------|------+------+------+------+------+------|
* | | LSft | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | | | | | LAlt | |Space | |Space | | | Left | Down | Up | Right|
* `------------------------------------------------' `------------------------------------------------'
*/
[META] = LAYOUT( \
RESET, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, XXXXXXX, XXXXXXX, \
_______, _______, XXXXXXX, KC_MHEN, KC_HENK, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, \
_______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
_______, _______, _______, _______, _______, XXXXXXX, _______, _______, XXXXXXX, XXXXXXX, _______, _______, _______, _______ \
),
/* SYMB
* ,------------------------------------------------. ,------------------------------------------------.
* | ESC | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | | |
* |------+------+------+------+------+------+------| |-------------+------+------+------+------+------|
* | LGUI | RCtrl| | | | | | | | | | [ | ] | | Enter|
* |------+------+------+------+------+------+------| |------|------+------+------+------+------+------|
* | | LSft | | | | | | | Del | QWTY | | { | } | | |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | | | | | LAlt | |Space | |Space | | | HOME | PGDN | PGUP | END |
* `------------------------------------------------' `------------------------------------------------'
*/
[SYMB] = LAYOUT( \
_______, S(KC_GRV), S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), S(KC_9), S(KC_0), XXXXXXX, XXXXXXX, \
_______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LBRC, KC_RBRC, XXXXXXX, _______, \
_______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DELT, DF(QWTY), XXXXXXX, S(KC_LBRC), S(KC_RBRC), XXXXXXX, XXXXXXX, \
_______, _______, _______, _______, _______, XXXXXXX, _______, _______, XXXXXXX, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END \
)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment