Skip to content

Instantly share code, notes, and snippets.

@taiyoh
Last active June 22, 2021 04:43
Show Gist options
  • Save taiyoh/957d0e08b81c69d0c1cdda621f7debc4 to your computer and use it in GitHub Desktop.
Save taiyoh/957d0e08b81c69d0c1cdda621f7debc4 to your computer and use it in GitHub Desktop.
#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
* ,------------------------------------------------. ,------------------------------------------------.
* | Tab | ' | , | . | P | Y | | | | F | G | C | R | L | / |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | LGUI | A | O | E | U | I | | | | D | H | T | N | S | - |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | LSft | ; | Q | J | K | X | RCtrl| | Bksp | B | M | W | V | Z | \ |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | ESC | MUTE | VolDN| VolUP| LAlt | META | Space| | Enter| SYMB | | LEFT | DOWN | UP | RIGHT|
* `------------------------------------------------' `------------------------------------------------'
*/
[DVRK] = LAYOUT( \
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, XXXXXXX, XXXXXXX, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH, \
KC_LGUI, KC_A, KC_O, KC_E, KC_U, KC_I, XXXXXXX, XXXXXXX, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS, \
KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_RCTL, KC_BSPC, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_BSLS, \
KC_ESC, KC_MUTE, KC_VOLD, KC_VOLU, KC_LALT, MO(META), KC_SPC, KC_ENT, MO(SYMB), XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
),
/* QWTY
* ,------------------------------------------------. ,------------------------------------------------.
* | Tab | Q | W | E | R | T | | | | Y | U | I | O | P | ' |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | LGUI | A | S | D | F | G | | | | H | J | K | L | ; | - |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | LSft | Z | X | C | V | B | RCtl | | Bksp | N | M | , | . | / | \ |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | ESC | MUTE | VolDN| VolUP| LAlt | META | Space| | Enter| 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_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
),
/* META
* ,------------------------------------------------. ,------------------------------------------------.
* | Reset| ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | LGUI | | | | | | | | | | | | | | |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | LSft | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 | |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | ESC | MUTE | VolDN| VolUP| LAlt | | Space| | Enter| | | 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, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, 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 | | | | | | | | | | | [ | ] | | = |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | LSft | | | | | | RCtl | | Del | QWTY | | { | } | | |
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
* | ESC | MUTE | VolDN| VolUP| LAlt | | Space| | Enter| | | 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, XXXXXXX, KC_LBRC, KC_RBRC, XXXXXXX, KC_EQL, \
_______, 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