Skip to content

Instantly share code, notes, and snippets.

@kamiheku
Created June 19, 2020 07:06
Show Gist options
  • Save kamiheku/44d3218b96c1d61a13633a08fc9edae6 to your computer and use it in GitHub Desktop.
Save kamiheku/44d3218b96c1d61a13633a08fc9edae6 to your computer and use it in GitHub Desktop.
// vim: sw=2:sts=2:expandtab
// crkbd -- kamiheku
#include QMK_KEYBOARD_H
// ┄─╼━━━━━━━━ layers ━━━━━━━━╾─┄ //
#define _QWERTY 0 //
#define _NUM 1 //
#define _SYM 2 //
// ┄─╼━━━━ layer toggles ━━━━━╾─┄ //
#define __NUM__ LT(_NUM, KC_ESC) //
#define __SYM__ MO(_SYM) //
// ┄─╼━━━━━━━━━━━━━━━━━━━━━━━━╾─┄ //
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT( \
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,\
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,\
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,\
KC_LGUI, __NUM__, KC_SPC, KC_BSPC, __SYM__, KC_RALT \
),
[_NUM] = LAYOUT( \
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,\
_______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, KC_LEFT, KC_DOWN, KC_UP,KC_RIGHT, _______, _______,\
_______, _______, _______, KC_MPLY, KC_BRID, KC_BRIU, _______, _______, _______, _______, _______, _______,\
_______, _______, _______, _______, _______, _______ \
),
[_SYM] = LAYOUT( \
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,\
_______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LCBR, KC_RCBR, KC_PIPE, KC_GRV,\
_______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LBRC, KC_RBRC, KC_BSLS, KC_TILD,\
_______, _______, _______, _______, _______, _______ \
)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment