~jojo/kyria-keymap

43535184ca20cf45f2b43bd26620e33033b872ca — JoJo 2 months ago 0930bf2
Add Colemak-DH layout & make it the default
1 files changed, 13 insertions(+), 4 deletions(-)

M keymap.c
M keymap.c => keymap.c +13 -4
@@ 16,7 16,8 @@
#include QMK_KEYBOARD_H

enum layers {
    WORKGIRL = 0,
    COLEMAK_DH = 0,
    WORKGIRL,
    QWERTY,
    GAME,
    SYMB,


@@ 31,9 32,10 @@ enum tapdance {

void dance_layout(qk_tap_dance_state_t* state, void* user_data) {
    switch (state->count) {
    case 1: layer_off(QWERTY); layer_off(GAME); break;
    case 2: layer_on(QWERTY); layer_off(GAME); break;
    case 3: layer_off(QWERTY); layer_on(GAME); break;
    case 1: layer_off(WORKGIRL); layer_off(QWERTY); layer_off(GAME); break;
    case 2: layer_on(WORKGIRL); layer_off(QWERTY); layer_off(GAME); break;
    case 3: layer_off(WORKGIRL); layer_on(QWERTY); layer_off(GAME); break;
    case 4: layer_off(WORKGIRL); layer_off(QWERTY); layer_on(GAME); break;
    default: {};
    }
}


@@ 46,6 48,13 @@ qk_tap_dance_action_t tap_dance_actions[] = {
#define ___ _______

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
    [COLEMAK_DH] = LAYOUT(
      KC_TAB,   KC_Q,     KC_W,     KC_F,     KC_P,     KC_B,                                                KC_J,     KC_L,     KC_U,     KC_Y,     KC_SCLN,  KC_MINS,
      KC_ESC,   KC_A,     KC_R,     KC_S,     KC_T,     KC_G,                                                KC_M,     KC_N,     KC_E,     KC_I,     KC_O,     KC_QUOT,
      KC_SUP,   KC_Z,     KC_X,     KC_C,     KC_D,     KC_V,     KC_CAPS,  TD(DLAYO),   KC_DEL,   KC_BSPC,  KC_K,     KC_H,     KC_COMM,  KC_DOT,   KC_SLSH,  KC_BSLS,
                                    KC_PSCR,  C(KC_LALT),KC_LALT, KC_LCTL,  KC_ENT,      KC_SPC,   KC_LSFT,  MO(SYMB), MO(FUNC), KC_MEDIA_PLAY_PAUSE
    ),

    [WORKGIRL] = LAYOUT(
      KC_TAB,   KC_Q,     KC_D,     KC_R,     KC_W,     KC_B,                                                KC_J,     KC_F,     KC_U,     KC_P,     KC_SCLN,  KC_MINS,
      KC_ESC,   KC_A,     KC_S,     KC_H,     KC_T,     KC_G,                                                KC_Y,     KC_N,     KC_E,     KC_O,     KC_I,     KC_QUOT,