From 0064f1f84cf8470beb32557145dc5d1b9c977fc8 Mon Sep 17 00:00:00 2001 From: Joshua T Date: Sat, 30 Jul 2016 08:46:01 -0500 Subject: [PATCH] Moved my Ergodox keymap to match upstream changes --- .../keymaps/replicaJunction/keymap.c | 18 ++++++++++-------- .../keymaps/replicaJunction/readme.md | 0 2 files changed, 10 insertions(+), 8 deletions(-) rename keyboards/{ergodox_ez => ergodox}/keymaps/replicaJunction/keymap.c (97%) rename keyboards/{ergodox_ez => ergodox}/keymaps/replicaJunction/readme.md (100%) diff --git a/keyboards/ergodox_ez/keymaps/replicaJunction/keymap.c b/keyboards/ergodox/keymaps/replicaJunction/keymap.c similarity index 97% rename from keyboards/ergodox_ez/keymaps/replicaJunction/keymap.c rename to keyboards/ergodox/keymaps/replicaJunction/keymap.c index b0b5cab7b3..bc5cbc643b 100644 --- a/keyboards/ergodox_ez/keymaps/replicaJunction/keymap.c +++ b/keyboards/ergodox/keymaps/replicaJunction/keymap.c @@ -47,7 +47,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { * ,-------------. ,-------------. * | LCtrl| LAlt | | Left | Right| * ,------|------|------| |------+------+------. - * | Ctl/ | Alt/ | Home | | Up | | _NU/ | + * |Shift/| Ctrl/| Home | | Up | Alt/| _NU/ | * | BkSp | Del |------| |------| Enter| Space| * | | | _NU | | Down | | | * `--------------------' `--------------------' @@ -63,7 +63,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_LCTL, KC_LALT, KC_HOME, - CTL_T(KC_BSPC), ALT_T(KC_DEL), MO(_NU), + SFT_T(KC_BSPC), CTL_T(KC_DEL), MO(_NU), // right hand KC_ESC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_EQL, KC_BSPC, KC_J, KC_L, KC_U, KC_Y, KC_SCLN,KC_MINS, @@ -73,7 +73,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_LEFT, KC_RGHT, KC_UP, - KC_DOWN, KC_ENT, LT(_NU,KC_SPC) + KC_DOWN, ALT_T(KC_ENT), LT(_NU,KC_SPC) ), /* @@ -143,10 +143,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { * |--------+------+------+------+------+------| FN2 | | ~L1 |------+------+------+------+------+--------| * | LShft | Z | X | C | V | B | | | | N | M | , | . | Up | RShft | * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | LCtrl| ` | \ |CtlShf| _NU | | _NU | / | Left | Down | Right| + * | LCtrl| ` | \ |CtlShf| _NU | | ~_GA | / | Left | Down | Right| * `----------------------------------' `----------------------------------' * ,-------------. ,-------------. - * | LCtrl| LAlt | | _ME | ~_GA| + * | LCtrl| LAlt | | _ME | ~_GA | * ,------|------|------| |------+------+------. * | | | Home | | PgUp | | _NU/ | * | Space| LAlt |------| |------| Enter| Space| @@ -169,7 +169,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_BSPC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_MINS, KC_END, KC_N, KC_M, KC_COMM,KC_DOT, KC_UP ,KC_RSFT, - MO(_NU),KC_UP, KC_LEFT,KC_DOWN,KC_RGHT, + TG(_GA),KC_UP, KC_LEFT,KC_DOWN,KC_RGHT, MO(_ME),TG(_GA), KC_PGUP, @@ -345,19 +345,21 @@ void matrix_init_user(void) { // Runs constantly in the background, in a loop. void matrix_scan_user(void) { - // uint8_t layer = biton32(layer_state); + uint8_t layer = biton32(layer_state); + // uint8_t default_layer = biton32(layer_state); ergodox_board_led_off(); ergodox_right_led_1_off(); ergodox_right_led_2_off(); ergodox_right_led_3_off(); - switch (layer_state) { + switch (layer) { case _CO: ergodox_right_led_1_on(); break; case _QW: ergodox_right_led_2_on(); + break; case _NU: ergodox_right_led_3_on(); break; diff --git a/keyboards/ergodox_ez/keymaps/replicaJunction/readme.md b/keyboards/ergodox/keymaps/replicaJunction/readme.md similarity index 100% rename from keyboards/ergodox_ez/keymaps/replicaJunction/readme.md rename to keyboards/ergodox/keymaps/replicaJunction/readme.md